LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Extract Array from DAQmx Read

I have downloaded a DAQmx VI to measure a voltage. The taskout of the DAQmx Read goes to a waveform graph. How do I convert this into an array so I can manipulate columns (eg: column 3 = function(column 2)) and save the resulting csv file

 

Many thanks

GeoffreyGodzilla2_0-1669902130953.png

 

0 Kudos
Message 1 of 3
(1,121 Views)

Hi Geoffrey,

 


@GeoffreyGodzilla2 wrote:

The taskout of the DAQmx Read goes to a waveform graph. How do I convert this into an array so I can …


Wrong, it's the data output of the DAQmxRead function! Use AutoCleanup on your VI!

 

It's an array of waveforms: when you need just the sample arrays then use GetWaveformComponent in a loop…

 

Your question is very basic LabVIEW stuff, so you better re(read) the LabVIEW help!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,101 Views)

I am sorry sir. Please direct me to any help you suggest. I do not know what an array of waveforms is. I use python but not LabVIEW but I will learn.

 

I expected an array of length number of samples and two columns of time and Y. 

 

Many thanks.

0 Kudos
Message 3 of 3
(1,075 Views)