Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How to prompt user if he/she wants to save a data file when done?

So in my VI, I have created an openloop respone with a write to measurement to get data. Is there a way to prompt the user to decide if he or she wants to keep the data file of the write to measurement file after acquiring data and hitting stop.

 

So basically when the user is done with the experiment...I want it to prompt the user to decide if he/she wants to save the data....

 

 

I know there is an option for the write to measurement file to prompt the the user right when run is pressed...I want it to be the other way..thanks

 

0 Kudos
Message 1 of 2
(3,334 Views)

Hi coolrthancoolio,

 

Looking at your code this is fairly simple to do, but there is possibly a drawback:

 

You can get the Write to Measurement File Express VI to prompt the user to save after running the loop by simply placing it outside the loop and wiring the data out of the loop and into the signal input terminal.  Basically you will wait until the end of your program to write the data instead of writing it as you are acquiring it the way you are currently.

 

The drawback here is that you will have to store the data in an array and pass it from iteration to iteration of the loop through shift registers.  This can cause the amount of memory that LabVIEW is using to grow very large if you happen to be running this VI over a long period of time.

 

Have a great day,

 

Chris

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,331 Views)