How Do I Generate a Constant Voltage Output Using LabWindows™/CVI and DAQmx

Updated Oct 4, 2018

Reported In

Software

  • LabWindows/CVI

Driver

  • NI-DAQmx

Issue Details

I want to generate a constant DC output voltage using DAQmx and LabWindows™/CVI.  How do I accomplish this?

Solution

The simplest way to do this would be to use the built in examples in LabWindows™/CVI.  Open LabWindows/CVI and go to the example finder.  Navigate to the following example:
Hardware Input and Output >> DAQmx >> Analog Generation >> Voltage >> VoltUpdate.prj


When the project opens, you should see the following UI interface:


From this UI, you can change the output voltage of the channel by changing the voltage control on the right side of the interface.  The minimum and maximum value correspond to channel maximum and minimum values while the voltage is the actual output value.

Additional Information

To change the function of the program, you can edit the code found in the Volt Update.c and the user interface can be changed by editing Volt Update.uir

WAS THIS ARTICLE HELPFUL?

Not Helpful