NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating TestStand threads from a DLL

I have a DLL function that creates a thread to maintain a LabWindows/CVI user-interface. I'm interested in having UI events trigger the execution of a sequence in TestStand.

In the TestStand API, I can find methods to start a whole new Execution. But I was really hoping to create a TestStand thread within the original Execution. I can't find a way to do that. Is it possible?

I'm using TestStand 2.0, by the way.
0 Kudos
Message 1 of 2
(2,626 Views)
The only way to start a thread within an execution is with a sequence call step.

To accomplish what you describe, your sequence could start a thread that waits for requests to start new threads (requests sent via any convenient mechanism such as TestStand events or queues, Windows synchronization primitives, TestStand or DLL variables, etc.). When the thread receives a request, it would use a sequence call step to launch the appropriate new thread.
0 Kudos
Message 2 of 2
(2,626 Views)