LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving Data with Indicator

Hello.
 
I have this VI which saves data. Kindly see the attached. In actual application I am saving a lot of data. I want to create an Indicator that when I push the SAVE button, an Indicator will pop-up and will tell the user how many percent is being saved, i.e. 10%....35%.....80%....100% Complete.....
This is just to make sure that the data being stored in the memory is completely saved.
Thanks for any advise.
 
regards,
 
 
 
Download All
0 Kudos
Message 1 of 6
(4,055 Views)
Unfortunately for what you're asking, after looking at your VI, the "Write File.vi" is an atomic operation. You could break the data up into chunks and write it out to the file piece-meal, then you can use a progress indicator (included with LabVIEW 8 or use the Microsoft Active-X control) to show the "percentage complete". Downside is that it will take longer to write your data. But as we all know, sometimes giving the user's a "warm and fuzzy" takes priority over all else...Smiley Very Happy
0 Kudos
Message 2 of 6
(4,043 Views)
Thank you for the reply.
 
"Downside is that it will take longer to write your data. But as we all know, sometimes giving the user's a "warm and fuzzy" takes priority over all else..."
- Thats true, actually that is the first complain i got from the user. They wants to see if the data is really saved....Smiley Surprised
 
"You could break the data up into chunks and write it out to the file piece-meal"
- What do you mean break the data up into chunks? How should I break it?
 
Do you have a sample VI for this function (percentage complete) just for my guide?
 
Thanks you very much.
0 Kudos
Message 3 of 6
(4,032 Views)
Ok, if the user wants to see that the data was really saved you could read it back after writing and do a compare...show the user the results of the comparison. You could use the progress indicator to show progress on the steps in writing, reading and comparing. Of course, this is only ONE solution of several I can think of.
0 Kudos
Message 4 of 6
(4,005 Views)
Just split the data for example to 10 smaller parts. After saving the first part display to the user "10% done" and so on. After saving the first smaller part append the other parts to created file.
LV 2011, Win7
0 Kudos
Message 5 of 6
(3,992 Views)

Hi

Sorry for the late reply. I dont really know where and how to use the Microsoft Active-X Control. I wish someone can send me an example VI for my guide.

Instead, I just made a pop-up Time Indicator (Thanks to NI.). Please see the attached. In this example the the user needs to wait for about 10 seconds while the data is being save or updated. This VI is not the Actual status or actual progress while the data is being written to the file. This is what i hope to learn.

Download All
0 Kudos
Message 6 of 6
(3,969 Views)