LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to save the waveform chart information

I am attaching a VI which recordes the power and wavelength from a ILX lightwave power meter. I had added  waveform chart  to the program to record the values of quatities with respect to time. Please kindly help me to read the quantities  on time with saving the values from initial time to final time. I I use shift registers with a built array in the while loop , will it retains the past values? 

0 Kudos
Message 1 of 7
(3,231 Views)

Hi perumpadapu,

 

I had added  waveform chart  to the program to record the values of quatities with respect to time.

Wrong. Charts don't display values with respect to time!

 

help me to read the quantities  on time with saving the values from initial time to final time.

You need to get timestamps too!

 

I I use shift registers with a built array in the while loop , will it retains the past values?

Yes, that's what they are made for!

 

When you need to ask about shift register I need to recommend you to take the FREE online beginner courses for LabVIEW provided by NI on their website!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(3,223 Views)

I had added  waveform chart  to the program to record the values of quatities with respect to time.

Wrong. Charts don't display values with respect to time!


Hey Gerd,

 

I don't quite understand. If I wire a waveforme to a waveform chart it stores an processes data as waveform i.e. t0,dt and [y]. This, to me is in respect ot time.

 

If you meant, though, that it doesn't do that in his case, I very much agree with you.

 

As for the free tutorials:

3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Learning NI
Getting Started with NI Products



Remember Cunningham's Law
0 Kudos
Message 3 of 7
(3,184 Views)

Hi Peter,

 

ok, the chart displays waveforms according to their dt.

 

- What's the point in talking about charts when you already have a waveform available for saving? There's a ready-to-use function to save a waveform to a text file…

- The OP just reads scalar samples from the DAQ device and uses NO real timing in the DAQ loop. Where do you see any strict loop timing to have an accurate dt?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(3,179 Views)

Thanks for clearing that up.

 



Remember Cunningham's Law
0 Kudos
Message 5 of 7
(3,162 Views)

thanks for the reply, but how can I stores the two measured quantities with respect to time other than waveform chart. If I use X-Y graph . The X will time and Y will be the quantity. So how can I wire the time data to X-Y graph.  Even if I am using the waveform chart  for recording the time dependent value of quantity how can I adjust the time interval. Please kindly reply

0 Kudos
Message 6 of 7
(3,127 Views)

Hi perumpadapu,

 

how can I stores the two measured quantities with respect to time

Get the timestamp and create a file with three columns: timestamp, first measurement value, 2nd measurement value…

 

how can I adjust the time interval.

- You already have a wait function in the loop.

- Maybe your DAQ device allows setting a fixed/accurate samplerate…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 7
(3,112 Views)