NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

terminating thread at test completion

I have a sequence that kicks off a VI (contained in its own subsequence) in a separate thread.  The tests that run after that talk to this separately-threaded VI.  They report pass/fail and the test ends.  However, until that separately-threaded VI stops, the sequence doesn't complete (and show the test results).  Fortunately I display the VI at runtime and I have a STOP on the front panel (so I don't have to abort).  However, I'd like a more graceful way to stop that thread.  Thoughts?
0 Kudos
Message 1 of 2
(2,789 Views)

You have to include interthread-communication. If the testing VI is running in the same application instance as the "serving VI", you can use queues to transfer data and commands. If they do not run in the same application instance, you can use protocols like TCP.

 

Terminating the TestStand Execution is no solution since the thread in TestStand, which called the service VI, is not active and therefor cannot be terminated until the VI is finished.

 

hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(2,786 Views)