LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert wavefrom (DBL) to 1-D array

Solved!
Go to solution

hi all,

I am trying to convert a waveform comes out from Daqmx Read.vi (analog 1D wfm n channels n samples -  It measures temperature via thermocouples) to 1D array to save data a text file. I tried to use "get waveform components" function but it comes out an error. I attached its printscreen. How can I convert that?

Egemen
0 Kudos
Message 1 of 7
(3,273 Views)
Solution
Accepted by topic author newbieeng
You have an array of waveforms from the DAQmx Read - multiple channels. You would need to first use the Index Array function. You can use the 1 channel DAQmx Read in the first place. You can also use the Export Waveform to Spreadsheet File and not do any conversion.
Message 2 of 7
(3,270 Views)

Thank you Dennis. It works. I did it with index array and get waveform components. I attached the printscreen.

Egemen
0 Kudos
Message 3 of 7
(3,264 Views)
Of course if you only need one channel and no timing information, you should change the DAQmx Read. It can directly return a 1D array.
0 Kudos
Message 4 of 7
(3,256 Views)

Really? Can I change the output type of the daqmx read.vi? Do I have to open its block diagram to do it?

Egemen
0 Kudos
Message 5 of 7
(3,250 Views)
It has no block diagram. Simply right click and Select Type.
0 Kudos
Message 6 of 7
(3,242 Views)

ok thank you Dennis 🙂

Egemen
0 Kudos
Message 7 of 7
(3,235 Views)