12-27-2021 08:40 AM
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.
12-27-2021 01:34 PM
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?
12-28-2021 04:26 AM
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.
12-29-2021 11:01 AM - edited 12-29-2021 11:02 AM
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?