Continuously Output Voltage on a Programmable Power Supply in LabVIEW

Updated Jun 14, 2018

Reported In

Hardware

  • PXI Programmable Power Supply

Driver

  • NI-DCPower

Issue Details

  • I have an NI programmable power supply and on the NI-DCPower Soft Front Panel I can select Output Enabled to continuously output a voltage. 
  • I want to be able to continuously output a voltage in LabVIEW until I press stop but none of the NI-DCPower LabVIEW examples show how to do that. 

Solution

  • You can configure your programmable power supply to Constant Voltage Mode
  • After the niDCPower Initiate VI, If you want to be able to control when to stop outputting with a button, you can use the niDCPower Query Output State VI in a while loop with a Stop Button wired to the conditional terminal of the while loop.

Additional Information

In LabVIEW, calling the niDCPower Initiate VI moves the device to the Running State where the device begins output signal generation based on device configuration. 

WAS THIS ARTICLE HELPFUL?

Not Helpful