LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i register a graph or a chart on my computer?

The problem is: i am testing an engine and i must see the evolution of differents things (evolution of temperature, evolution of O2, evolution of CO2...). I have to see all of these evolutions on a graph. But i would like to be able visualizing this graph one day after, two days after...when i want. So, how can i do to register this graph on my computer? (sorry for my english!)
0 Kudos
Message 1 of 8
(1,617 Views)
Hi,

i think you must to save your graph to file or to DB.
You must also to add date/time of saving. Your vi will read the saved data and will plot it and write time of saving.
0 Kudos
Message 2 of 8
(1,617 Views)
How can i save this graph? Which function must i use?
0 Kudos
Message 3 of 8
(1,617 Views)
How you make graph: you have some vector or array of data and plot it in graph. O.K?
Save this data to file and next time when you read the data you plot it again. For saving/reading data to/from file you have Write/Read To/From Spreadsheet File.vi. See help of this vi's. Using of them is very simple.
0 Kudos
Message 4 of 8
(1,617 Views)
Use the 'write to spreadsheet file.vi', and then to look at the data again in LabVIEW you can use the 'Read from spreadsheet file.vi'. Or you can simply view the file in Excel.
0 Kudos
Message 5 of 8
(1,617 Views)
thanks!
0 Kudos
Message 6 of 8
(1,617 Views)
One additional that your other responses didn't touch on is that if you save your data with a LV timestamp for each sample (you know: the number of seconds since midnight GMT 1904) you can do some really neat things when you go to plot the data.

For example, assuming a file structure where each row contains one set of readings and the first value is your timestamp, read the whole file using one of the techniques the other posters have given. The result will be a 2D array of floating point values. Now extract the column of data containing the timestamps and use it for the X axis of an XY plot. Now, on the front panel, right-click on the graph's horizontal axis and select "Formatting...". In the resulting dialog box select "Time & Date" on the Format popup
menu and click OK.

Now when you plot whatever other columns of data you want, they will be shown relative to the time and date they were collected. Very Cool...

Mike...

PS: I can send you an example if you would like to see it.

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 7 of 8
(1,617 Views)
oh yes, i would kike you to send me an example! Thank you very much!
0 Kudos
Message 8 of 8
(1,617 Views)