07-15-2009 11:19 AM
07-15-2009 11:48 AM
07-15-2009 12:09 PM
Is the duration of the program linear (consistent) with size? If so, you can do a calculation showing the percentage complete based on time (I know it is not fully accurrate, but gives you an idea).
From memory (no LabVIEW here), I think you can set the VI to wait until complete before your code continues from the SysExec vi. You can set a trigger before running it and after it completes to start and stop the progress counter routine (loop, etc).
R
07-15-2009 12:20 PM
Since you wrote
RyanNaz wrote:
... ... but I do have a counter thing with a while loop that would show that the program is still responding ......
If you also know the maximum value of that counter, you could use a "Horizontal progress bar".
07-15-2009 02:00 PM
07-15-2009 02:02 PM
07-15-2009 09:30 PM
I've been away from LV for too long 😉
Attached is an example. I did it quickly tonight and did not optimize the code within the loop.... I'm sure it will show up in the Rube Goldberg code LOL! 🙂
The file size would normally be wired directly to whatever you use to open a file, or from a file property VI.
The command line is where you call your program (you have that already).
The ratio time/size is how long in seconds that it takes on average to process a given size of file. Example, if a 1024000 byte file takes 1 sec then the ratio would be 1024000. Try to do it in seconds per bytes because the file size property will be in bytes.
The bottom loop will stop under 2 conditions:
1. the number of expected seconds have elapsed
2. the SysExec was done
The indicator will go to 100% maximum and should not roll over. You may need a property node to reset the slide in your code. I'll put it into the example.
The sale indicator will update every second.
The rest of the code should be self-explanatory and had some comments.
Hope it helps.
R
07-19-2009 03:38 PM
07-20-2009 07:42 AM
I seem to recall that there was a small vi that was created which was a running horse / dog / or man..
I think it was posted by tst. I will look for it. You could replace the progress bar with the animated icon.
R
07-20-2009 07:45 AM
Here is what DFGrey suggested:
"To roll your own, do the following: