LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to change the time of a saved data to be as the same as the time-axis of the waveform graph?

Hi,

 

I've a problem while saving the waveform to a spreadsheet.

The problem that I'm facing is that I'm not able to save/change the time-axis of the waveform graph into the excel spreadsheet.

 

The attachments below are what I've programmed on.

 

1st file that would be asked to save is the results of the waveform.

2nd file, supposing to be the time-axis

3rd file, is the multiplication of results of CH 1 and CH 2.

 

Would be glad if someone can enlighten me with a solution which is suitable for LabView version 8.2 and Tektronix DPO 72004.

 

Thanks. ((((:

0 Kudos
Message 1 of 15
(3,059 Views)

Hi,

 

Are you trying to save all the components of the waveform to file, and then retrieve them for modification?  It seems that you would want to just take the waveform parts directly from the waveform data rather than save to file and re-open to analyze.

 

Have you looked at the format the first data save , "export waveform to spreadsheet file" , creates?  I would assume it provides either the start time and delta time, or an array of equally spaced time points.

 

Please explain a bit more what your goal is, I'm not clear on exactly what part of the saving you need that is not provided.  Thanks.

-------
Mark Ramsdale
-------
0 Kudos
Message 2 of 15
(3,040 Views)

I've saved it as text file which could be read if I open it with excel spreadsheet.

 

My aim is to get the time-axis (x-axis) in the file rather than to get the date and time in the file.

 

The attachment is the waveform results that I've obtained.

0 Kudos
Message 3 of 15
(3,018 Views)

Hi,

 

The file seems to have the same data stamp for each row.

 

The waveform datatype has the time and delta components, so you could create a column for each row that would be the time column.

 

The "export waveforms to spreadsheet file" VI is the culprit if this attached file is the one saved.  I would suggest replacing it with one that does what you want, maybe "write waveform to file" VI does the job.   Or one could "break out" the waveform datatype and building an array that you can save directly to file. 

 

 

-------
Mark Ramsdale
-------
0 Kudos
Message 4 of 15
(2,984 Views)

this is probebly an old forum, but the problem is still there.....

I'm trying to save the scope trace and I want the zero of time to be at the trigger point (like the waveform on the scope)

Is there a way to do it? I'm using labview 14 with the standart driver frrom Ni.

thanks, Erez

0 Kudos
Message 5 of 15
(2,933 Views)

Hi Erez,

 

which "scope" do you use?

Which "standart driver from NI" do you use?

How do you try to save the trace data?

 

Btw: spelling is "LabVIEW", "standard", "NI"

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 15
(2,909 Views)

Dear GerbW

thanks for the spelling correction 🙂

 

the scope:

DPO 3034

I've downloaded the driver from Help-> find instrument driver

I'm using one of the get waveform examples, then I brake the waveform to get the Y value and the dt.

the to is a "useless" time stamp

thanks for the help, Erez

 

0 Kudos
Message 7 of 15
(2,895 Views)
And then you misspell Gerd.

Instead of creating a waveform data type, you can modify the driver to create the old style format of a cluster with a dbl t0, dbl dt, and dbl array. The key is getting rid of the timestamp data type.
0 Kudos
Message 8 of 15
(2,892 Views)

I guess it’s too late for me - I tried really hard to get the spelling correctly.

can you specify how do I change to the old waveform version?

Erez

0 Kudos
Message 9 of 15
(2,885 Views)
Don't use the Build Waveform function. The scope returns the timing information but the Build Waveform coerces the timing to a timestamp. Dig into the subVI. Look at the context help for a graph to see the cluster format.
0 Kudos
Message 10 of 15
(2,880 Views)