10-31-2017 04:28 AM
it's my first time to call a VI in asynchronously with teststand2016
I build a simple VI to explain this issue:
the numeric control in VI defaulted in 0 and run in a while loop, then I try to use a fileglobals in teststand to pass a 1 to VI and expect to stop the VI.
But the VI still running in new thread, any ideas for that?
Solved! Go to Solution.
10-31-2017 09:21 AM
This demonstrates how to do it.
Hope this helps,
10-31-2017 08:42 PM
It seems works well, Thanks a lot, Jiggawax.
But still with little issue:
-- I can't see new thread in threads window of editor in run time after VI front panel popped up
-- The front panel of VI will always pop up no matter I set "show VI front panel is..." ON or OFF
11-01-2017 09:31 AM
-- I can't see new thread in threads window of editor in run time after VI front panel popped up
Not sure on this. I've never even looked at the Thread window until today... haha. Maybe you need to store an object reference to it? Or do it in a Single Threaded Apartment? sorry I'm not more helpful on this.
johnnnywang wrote:-- The front panel of VI will always pop up no matter I set "show VI front panel is..." ON or OFF
This is because the VI step in the New Thread sequence has Show VI Front Panel When Called set. This will override the settings in you VI. Just uncheck it if you don't want the FP to show.
Regards,