From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(691 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
(671 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
(645 Views)