08-01-2012 07:24 PM
Hi, I am experimenting with a product test program, and I would like to have a single string on the front panel of my main test VI, that shows the current progress of the overall test. What is the best way for a series of subVIs to update a single front panel control with a progress string, as they finish their individual tests? Is this commonly done?
Additionally if I wanted a progress bar as well or instead, is there a way to update it from a variety of VIs? Thanks for any advice.
08-01-2012 08:00 PM
What kind of progress bar are you talking? You mean the order in which sub vis finish executing? You can use a property node of a front panel object and pass the references to the sub vi to update the value from the sub vi. You have to give little more details, either a snapshot of the vi or the vi.
08-01-2012 08:11 PM
Thanks for the reply. The application is not written yet, but it would have "Test 1" VI wired to "Test 2" VI wired to "Test 3" VI etc., so that during Test1, the progress 'string control' on the front panel would show "Performing Test 1..." and when Test2 VI starts, that would change to "Performing Test 2..." and so on. I would like each subVI to update the same control on the main panel.
Same idea for a progress bar, it would just advance a 10th of the way for each of the 10 tests.
08-01-2012 08:14 PM - edited 08-01-2012 08:22 PM
pick your flavor....
08-02-2012 01:03 AM - edited 08-02-2012 01:07 AM
The best way would be to use a queue. Follow the steps
You are done. This would be simple and also parallely you can write the data to a file so you can maintain a history log.
Progress bar.. Its tough unless you know the execution time or how many time you execute and everything.
Good luck
08-02-2012 02:13 AM
Another solution that should work is a sub-vi panel which only holds information fields and doesn't do anything. Inputs would ofcourse be the string controls of similar.
From all processes, you can run this vi updating it's fields and if it's a shown subpanel it should update the information.
Sort of a GUI-vi.
(I did some tests a long time ago with a similar idea to have easily changable GUI look and feel)
/Y