LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

saving labView waveform.vi data in a 2D array

I have created an oscilloscope VI that takes input using DAQ Assistant and displays the waveform. What should I do if I want to save my waveform in X,Y format in an Excel or Text file.  

PS: I am new to LabView a detailed explanation will be appreciated or correction in attached VI. 

0 Kudos
Message 1 of 4
(1,495 Views)

Hi akriti,

 


@akritiRaj wrote:

What should I do if I want to save my waveform in X,Y format in an Excel or Text file.  


When you want to save a waveform you might try the WriteWaveform/ExportWaveform function found in the waveform functions palette…

 

Why do you think it is a good idea to convert a waveform to a 2D array using an ExpressVI ("FromDDT")? Why do you expect more than one channel in that 2D array when the input is a scalar waveform?

Why does your filepath contain so many SPACE chars at the end?

Best regards,
GerdW


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

Sir, I could not find the vi you are saying. Also I am new to LabView so please bare with me. I am attaching the vi, if you can kindly make changes to it. 

0 Kudos
Message 3 of 4
(1,440 Views)

Hi akriti,

 

in your last VI you set a samplerate of 2MHz: I recommend to use the file writing routine already built into DAQmx!

Use DAQmxConfigureLogging to create a TDMS file for your DAQ task. This TDMS file will contain the samples as well as information about samplerate…

 


@akritiRaj wrote:

Sir, I could not find the vi you are saying. Also I am new to LabView so please bare with me.


So you didn't find the Waveform functions palette? And you didn't find its FileIO subpalette?

 

Anyway: when reading samples at 2MS/s I don't recommend to export waveform datatype to files. Use TDMS instead, especially the TDMS write built into DAQmx!

 

As you are new to LabVIEW: did you notice those "Training resources" at the top of the LabVIEW board?

Best regards,
GerdW


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