Appendix B: Programming Examples
Example 1
This example i
s written in the C programming language; NIVISA can be used.
It demonstrates basic communication with the power supply and error checking.
The program establishes communication with the power supply and puts it into
remote mode. It then initializes the voltage and current and turns the output on.
It sends new values for the voltage and current, and reads back the actual meter
values before turning off the power supply output and closing communications.
Series 2200 Programmable Multichannel DC Power Supplies Programmer Manual B-1