NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-threaded Sequences,Threads and tracing

Am writting a custom OI in LabView. Got a issue which is causing a fair amount of head ache. I'm using the trace message to find out what is executing and displaying the data in the appropriate form.

However, I've notice that when sequences go off and execute in thir own threads(Multithreaded - 'Run Sequence in New Thread') there doesn't appear to be any trace messages coming back from thouse spawned threads. I've had a good look at thi but still can;t seem to figure out why.
Basically I need those trace messages.....
0 Kudos
Message 1 of 4
(3,427 Views)
Wojtek -
The default operator interfaces only support tracing one active thread at a time. Each operator interface has a thread control that allows you to switch between threads.

There is an option ExecMask_TraceAllThreads which specifies to send trace events for all running threads in an execution. This option can be set on Engine.NewExecution, but keep in mind that the OI must be able to support this option. When the TestStand sequence editor and operator interfaces launch new executions, they do not set this option.
Scott Richardson
https://testeract.com
Message 2 of 4
(3,423 Views)
Thanks. I'll Set the mask accordingly. And once again I thank you for your quick reply.
0 Kudos
Message 3 of 4
(3,416 Views)
Wojtek
I made a mistake. The mask for tracing multiple threads applies to StationOptions.ExecutionMask not Engine.NewExecution. Engine.NewExecution has a different mask called ExecutionTypeMask.
Scott Richardson
https://testeract.com
0 Kudos
Message 4 of 4
(3,400 Views)