LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop in while loop is not responsive .

I have this subVI in one of the state machines. This subVI is expected to take while beofre it completes its execution . I want the stop on the main VI also to be responsive at the same time . I have been using global variable to stop all while loops inside the subVI to the deepest level . This still doesnt seem to work . Please suggest any other method . I m using LV6.0.2.
0 Kudos
Message 1 of 3
(2,490 Views)
Is your stop button in the same loop as the subVI? If it is, then when you run the subVI, control is passed to that subVI and the stop button action will not be processed until the subVI exits and returns control to the main. One solution to that is to place the stop in a separate while loop that executes in parallel with the main while loop.
0 Kudos
Message 2 of 3
(2,490 Views)
Thanks that thing worked . Wanted toa sk anothe rquestion that you might be help me with .I m using Active X to read the data from excel and then closing it . I want that thsi should not dsiturb anyother running instance of excel . I know it is possible, but through labVIEW I dont know ?
Thanks and Regards
Sumit
0 Kudos
Message 3 of 3
(2,490 Views)