04-11-2019 04:10 AM
Hello All,
I have one labVIEW VI created with few buttons on the front panel and my requirement is to call this labVIEW VI in my Teststand seq. Whenever i call my Teststand seq, the very first thing is it should start execute the VI i developed with front panel open and continue to run the rest of the sub sequence in my main sequence. But my labview VI should still run until i manually go and abort it or i call thread programmatically close the VI. Can anyone help on this?
thanks,
04-11-2019 08:51 AM
Hey Diana,
Can you explain why you want your VI to continue running if you are terminating it or calling abort on it? The point of aborting a VI is to stop its execution. Is there a portion of this VI that can be taken out and put into another VI that can then be called after you have terminated this first VI?
Thanks,
Roxy
04-11-2019 09:24 AM - edited 04-11-2019 09:27 AM
@Diana85 wrote:
Whenever i call my Teststand seq, the very first thing is it should start execute the VI i developed with front panel open and continue to run the rest of the sub sequence in my main sequence. But my labview VI should still run until i manually go and abort it or i call thread programmatically close the VI. Can anyone help on this?
My most recent way to do this was to make a wrapper VI that uses the Asynchronous Call By Reference to run the "GUI VI". I use queues (stored in Action Engines) to get data in and out of that VI. So on the TestStand side, I just call the launcher VI at the beginning and call another VI at the end to tell the GUI VI to close.
04-11-2019 10:33 AM
Hi.
To me it sounds like what you are looking for is the "Run VI Asynchronously" step which is found the "LabVIEW Utility" folder in the "Step Types" pane. It makes the VI call as a new thread in your execution context, and thus it allows you to handle the VI call just like any other thread you might have started.
04-12-2019 03:41 AM
Hi..
Thanks.. I got to know how to use Run VI Asynchronously. But I am not aware of how to access the VI variables from different teststand seq. any idea?