Discussion:
howa can i go back in time to display data
(too old to reply)
suni
2008-08-15 15:10:06 UTC
Permalink
Is there any way to display data that was acquired in the past in Labview? I have multichannel Daqmx acquiring data. I want to display data that was acquired in the past choosing the time interval. for example if i labview ran the program for 2 min and i want to daipaly data that was acquired in the first min again. Can i do that in  the Labview? Thanks
jmcbee
2008-08-15 15:10:08 UTC
Permalink
If you are logging your data to a file as it is collected you can display whatever chunk of data whenever you want. What are you doing with the data as it is collected?  Are you storing it in an array, in a queue, in a file...   The answer to how you are storing data will dictate the answer to how you can display data from the past.
smercurio_fc
2008-08-15 15:40:07 UTC
Permalink
You could use a waveform chart (not graph) and use its history. Then you can just scroll backwards in time.
suni
2008-08-15 16:10:06 UTC
Permalink
I am just displaying it in the front panel now. If I want to store data to a file or array how can i retrive data form the file of array using the time interval? How can i use wavefrom chart to diplay history? Can you explain lilttle more? Thanks
jmcbee
2008-08-15 16:10:06 UTC
Permalink
If you log your data to file, simply save each row of data with a timestamp.  All you have to do is read the file, parse the string for the timestamp, pull out the data corresponding to the desired timestamps, convert it back from a string data type to a double and build your plot using this data.  Depending on how long you will be collecting data for, how far back in time you need to go to see the data you want, the waveform chart with history would be much simpler.  However I believe the waveform chart will lose its history if the program is stopped (perhaps smercurio_fc can confirm or deny this for both of us), so you wont be able to recall data that was taken prior to a program restart.
smercurio_fc
2008-08-15 16:40:20 UTC
Permalink
jmcbee wrote:
However I believe the waveform chart will lose its history if the program is stopped (perhaps smercurio_fc can confirm or deny this for both of us), so you wont be able to recall data that was taken prior to a program restart.
Depends on what you do. If you don't fiddle with scales then you shouldn't lose the previous data on restart. You can see this in the example "Charts" that ships with LabVIEW, vs "Real-Time Chart".
Loading...