LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving graphs in a VI file

I have a code that records and graphs data in multiple waveform charts simultaneously. Is it possible to save the code as a VI file while keeping the graphs and data plotted to come back to? If I try to save over the file, it just erases my data and starts the graphs back to blank.

 

Any help would be appreciated!

0 Kudos
Message 1 of 5
(1,312 Views)

You need to save the data in your indicators as default before you save your VI.

 

Edit >> Make Current Values Default will do it for everything on the front panel.

OR

Pick an indicator, right click.  Data Operations.  Make Current Value Default will do it on individual controls or indicators.

0 Kudos
Message 2 of 5
(1,305 Views)

Thanks for the reply. I tried doing both of those and labview tells me that I have set new default values, but when I reopen the file, the graphs are still blank. Am I just missing something?

0 Kudos
Message 3 of 5
(1,285 Views)

Yes.

 

You probably forgot to save the file.

 

Note, I don't really recommend constantly saving the VI after every time you run it.  VI's should only be saved when you actually change the code in them.  But it sounds like you are using the development environment.  Starting and stopping from the development environment, and want the stuff on the controls and indicators to persist after every time you change them or run the VI between opening and closing the VI.

 

That means you need to save those values as default, then save the VI.

Message 4 of 5
(1,251 Views)

Are you trying to save the data between runs or between sessions?

It seems a really bad idea to save data inside VIs. Maybe you want to save them externally on disk when the VI ends (or  stream to disk as data arrives) and reload when the VI starts.

 

Please give a little bit more context on what problem you are trying to solve with all this. I think you are trying to solve the wrong problem.

Message 5 of 5
(1,203 Views)