In this example, we will use a programmable power supply to step through five different voltages (since we use an array, the number of voltages can be as many as the number of array elements). We will send SCPI commands to a programmable power supply (KORAD KA3005P programmable DC power supply) to set the voltage. In the next step, we query the instrument to report back the value that the power supply is currently set on. Finally, we will collect all the returned values in a different array.
The power supply is connected to the LabVIEW computer via USB. We will use serial communication to send commands and collect returned values. The communication part of the VI is achieved via a SUB VI called Serial P.P.S.
To achieve the prceding scenario, we will only need four SCPI commands:
OUT1: This will set the output to ON mode
VSET1: This will set the output channel 1 to <value> volts
VSET1 : This will query voltage at channel 1
OUT0: This will turn the output off
Note...