Goal: To load identical settings into a number of FeelTech FY6x00 arbitrary wave generators and set a phase shift so that they all cover 360 degrees.
- Visit the official Python website and download the latest version of Python 3.
- Launch the installer and follow the on-screen instructions.
- Typically,
pip
is already included in Python3 installations. If not, open your command prompt or terminal and run:
pip install pyserial
4. Downloading the Library and Placing the Middleware Script
- In your command prompt or terminal, execute:
git clone https://github.com/mattwach/fygen fygenlib
- After downloading, place the script
fygenmidware.py
into the directory that contains thefygenlib
folder. - If you already have an attached version of the library, ensure it's located in a directory convenient for you, and then place the script in the same manner.
- Launch LabVIEW.
- Open your VI associated with the generator control program.
- In the VI, find the control or field responsible for specifying the script path.
- Specify the absolute path to the
fygenmidware.py
script.
- In the VI, locate the appropriate control or field for the Python version.
- Indicate your Python version (e.g., "3.11").
- If necessary, add or remove connection ports adding or deleting arguments of "FY6900_Driver" block.
- The program will automatically calculate the number of generators.
- In the VI, input the desired parameters: frequency, output signal type, etc.
- Choose the required connection ports.
- Initiate the program execution.
Note: Upon completion, the program will automatically configure each generator considering the defined phase shift. Proceed to configure your equipment according to the provided parameters.