From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-07-2017 07:57 AM - edited 01-07-2017 07:58 AM
I have logged the xy graph data in .txt format using write to spreadsheet file.vi.
Now what i want is to retrieve the data from the file and plot the data in similar time as i logged the data.
For example, the logged data is of 10 sec so when i read the data from the file then the graph must plot in same time i.e 10 sec.
I've attached the solution which i came to so far but i'm able to plot the data instantaneously.
Thanks in advance
Solved! Go to Solution.
01-07-2017 09:01 AM
It sounds to me as though you want to see your data, consisting of a series of time points (uniformly-spaced?) and the values acquired at each time point, plotted on an "evolving" plot as though it were a strip chart of the data as it was being acquired. Is this correct?
LabVIEW provides both a Chart (for evolving data, plotting the "latest point" each time) and a Graph (for static data, where all of the data present is plotted at once). If the first paragraph's assumption is correct, you are going to need to get "time" into your program and either
Do you know how to use the Functions on the Timing Palette to "slow down" your program so that it does the plots a point-at-a-time, using one of the methods suggested above?
Bob Schor
01-07-2017 09:33 AM
Thank you Bob_Schor. I've implemented your idea and i got what i wanted.
01-07-2017 09:35 AM - edited 01-07-2017 09:36 AM
Obviously what you are doing is not scalable.
Why does the graphing need to go via the file? What's the point? If you really want to do that for whatever reason, you need to use lowlevel file IO on both sides and open the file with correct locking so both sides can access it concurrently (one for write, one for read). Keep writing at the current location to append and keep reading at the last location.
What is the reason for your convoluted pumping of data across the file system? It simply does not look like such a good idea to begin with.