Example Code

Programmatic Control of the NI ELVISmx Variable Power Supply

Code and Documents

Attachment

Introduction

The attached VI demonstrates how to implement programmatic control of the NI ELVISmx Variable Power Supply. The code seen here is very simple but could be modified to act on the variable power supply based on the level of a pulse train for example. Only one instance of the Variable Power Supply Express VI can be called, because of the architecture of the Express VI. The following code takes that limitation into account.

Steps to Complete

1. Create a conditional statement to determine the output voltage of the Variable Power Supply.

2. Use a case structure to choose between values that the Variable Power Supply will output.

3. Use one instance of the Variable Power Supply Express VI and use the values from the case structure as inputs to the Supply + or Supply - inputs of the Express VI.

VPS True Case.png

VPS False Case.png

Regards,
Margaret Barrett
National Instruments
Applications Engineer
Digital Multimeters and LCR Meters

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors