LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sub-vi pop-up window slider indicator and abort button.

Hi. What I have is a Stacked Sequence Structure in which one of the frames runs a sub-vi that runs a while loop. The while loop in the sub-vi contains it's own sequence structure which processes a set of gpib commands 500 times. This takes some time, being there is a 100ms delay between frames, so I'd like to create a pop-up dialog window containing a slider indicator to monitor the progress of the sequence structure and an abort button (to abort the process and close the pop-up window). I figured I could use the sub-vi's while loop counter to increment the pop-up's slider. I placed the slider and abort button within a while loop in it's own sub-vi, but have not been able to get the two sub-vi's to run concurrently.
 
Any help would be appreciated
Thanks,
Paul
 
 
0 Kudos
Message 1 of 2
(2,451 Views)
I'm a little confused about why you would want two separate subVIs. Is the second subVI part of your main or is it being called by the subVI that's taking so much time? You really don't need a separate subVI. all you need to do is put your abort button and slider on the front panel of the subVI that's taking so long. You can size the front panel so that it only displays those two. Also, you might want to rethink your use of the sequence structure. A sequence structure cannot be aborted. It will always execute every fram so if you wanted to stop the while loop when it is running sequence 1, the while llop will not stop until the last frame is run. There are very few reasons to use a sequence structure anyways with proper dataflow programming. If an entire sequence takes a while to run, you should look at using a state machine instead.
0 Kudos
Message 2 of 2
(2,436 Views)