Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx reading and writing into a table (appended array)

Hi all,

 

I have a hydraulics system with a pressure sensor (my DAQmx read task) and a relief valve (my DAQmx write task), please see the attached vi. I would like to create a vi that allows me to write voltages from 0 to 10 V in increments of 0.5 V and for each voltage, read the respective pressure measurement from the sensor into an appended array in which first column is the voltage (wrote into the DAQmx task) and the second column is the pressure recorded (read from DAQmx task). It is critical given the nature of my system, to wait at least 5 seconds after writing the voltage into the relief valve, and 5 seconds before reading the pressure measurement into the array. 

 

I was thinking of doing a flat sequence but it does not seem like the most efficient way to go. Any suggestions?

 

Thanks!

Lisandro

0 Kudos
Message 1 of 3
(2,862 Views)
Here's what I have in mind.
0 Kudos
Message 2 of 3
(2,858 Views)

Nones,

 

Check out this tutorial.  This is the perfect place to use loops.

 

https://www.ni.com/en/support/documentation/supplemental/08/labview-for-loops-and-while-loops-explai...

 

Drew

Drew T.
Camber Ridge, LLC.
0 Kudos
Message 3 of 3
(2,823 Views)