LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I save the contents of a graph for each person

I have a DAQ system that captures three channels of data to the LabVIEW graph. I don't have time in between to analyze all the data and thus I want to just save the graph with all it's data till I can look at it later. Is there a simple save function that I can use after each time I run the VI to save the graph and all it's contents for later analysis?
0 Kudos
Message 1 of 4
(2,673 Views)
I think that all you need is to save the actual data and not any of the grpah properties. There's sveral options to save data. You can save waveform data types using Write Waveforms to File. The advantage of saving a waveform is that the timing info is there you wouldn't need to write that data separately. There's also Write to SGL File for saving a 2D or 1D array of SGL. If you use that, you would need to write the timing info as a header so that you could reproduce the actual data. In 7.1, there's Write LabVIEW Measurement File. That's a text file so it takes a bit longer to write and uses more space but it's readable by other applications.
Message 2 of 4
(2,673 Views)
Dennis,
Thanks! You're right I just need to be able to pick out the times on the graph of the three signals at a later date. If I write the file, will I be able to analize the data like I would be able to on the screen using the cursors? In other words, I'll use the cursors to locate the start point of each event on each signal and that position will give me a time that I can use to put in equations. I am pretty new to all the fancy stuff in LabVIEW. Where Would I put the "Write Waveforms to File" or "Write LabVIEW Measurement File" VI in my program. Does it require some special function around it?
0 Kudos
Message 3 of 4
(2,673 Views)
You could put in your stop event. Just wire your waveform to the waveform input of the write function and specify a file name. With an empty file path input, you'll be prompted for a name. You could automatically create a name based on date/time for example. To analyze the data, you need a VI that uses Read Waveform From File. The output All Waveforms in File should return exactly what you see on your graph now. Just wire that output to a Graph and use the same Trigger Detection you have now.
0 Kudos
Message 4 of 4
(2,673 Views)