LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you transform a 2d scaled data type to a waveform data type?

I'm using a daqcard 6024e with labview 6.1 pds. I'm modifying an example VI called Cont Acq to Spreadsheet File.vi. I wanted to run an fft on the data coming from the AI Read VI but that data is a 2d scaled array. The Array to Spreadsheet String VI which I need requires the output from the AI Read VI to be a 2d scaled array.
0 Kudos
Message 1 of 6
(3,060 Views)
Right click on the AI Read VI, go to "Select Type" and choose the Waveform option. If you do not see Select Type on the pop-up, replace the AI Read VI with the one from the DAQ palette since it is polymorphic.

Remember that Alliance Members are here to help. We do this every day.

Daniel L. Press
PrimeTest Corp.
www.primetest.com
0 Kudos
Message 2 of 6
(3,060 Views)
That solution works fine but the Array to Spreadsheet String VI requires the data it receives from the AI Read VI to be a 2d scaled data type. I want to transform the data type not at the AI Read VI but at some point after.

-Johann
0 Kudos
Message 3 of 6
(3,060 Views)
Make a FOR loop with a Get Waveform Components function in there, the "Y" component will be a 1D array. Wire the Waveform array through the FOR loop to the left side of the Get Waveform Components, let it index (it will by default). Wire the 1D array from the Y component out of the FOR loop and let it index also. The result is your 2D array of DBL.

- Dan
0 Kudos
Message 4 of 6
(3,060 Views)
Thanks for the solution.
0 Kudos
Message 5 of 6
(3,060 Views)
Hi, Dan!
How about if there is a 2D binary array instead of a waveform array?


Rok
0 Kudos
Message 6 of 6
(3,060 Views)