Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66844

Best way to control voltage with my code?

$
0
0

I need to be able to control current and voltage of a power supply. What would be the best way to implement this with my code? I realize that I need to use a DAQmx Start and Stop task. I *think* I would like the task to start when the user runs the program. The voltage and current should be 0 when I start it, or a really low number.

 

Currently, the program I am working off of using TraditionalDAQ. It uses 'AO Write One Update.vi' to update the voltage and current. 

voltage_i_change.PNG

 

How can I use DAQmx to achieve the same? Is it possible to also have the DAQmx code in an event structure in the same way?

 

Can I do this in my event structure, in a new event? The code below shows my code. There are two loops, the bottom one handles acquisition and logging. The top one handles the events.

code_snippet.PNG


Viewing all articles
Browse latest Browse all 66844

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>