The first thing is to open the communication channel with the generator, that is initialize the LCWFG500 and setting the appropriate parameters. The layout of a basic program is shown in the figure below.

The error handler contains only ‘serious errors’ that means those that will endanger the communication. Most errors that occur during operation are soft-solved and will not interfere with your program, that is if you do not specifically want them to change your program flow.

After you have decided to quit the program you must close the VISA session of the serial port.

You can control more than one generator from the same LabVIEW program. All you have to do is initialize two (or more) serial ports and separate the operations with them.