NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically select an execution to display in Full-Featured TestStand Operator Interface

Is there a way to send a UI_Message or some other function call to allow a executing sequence to force itself to the foreground (i.e.; be displayed in the OI)? What I want to do is to have the executing socket running tests serially with other sockets in the Batch Process Model to be able to jump to the display window when it is its turn to run. This way, the sockets each show their currently executing steps. I know this is possible as a Socket that hits a breakpoint during execution jumps to the front, but I can't find the callback or UI_Message that would allow a Test Sequence to move itself to the foreground. Anyone have any ideas on this?
 
I'm using TestStand v3.1 and the CVI Full-Featured OI using v7.1
 
Thanks,
 
-Jack
0 Kudos
Message 1 of 2
(3,185 Views)
In each sequence, call Thread.PostMessageEx to send a UIMsg_OpenWindows message. For the activeXDataParam parameter pass RunState.Execution.  Pass 0 to numericDataParam and "" to stringDataParam.
 
I apologize for this information being missing from the UIMsg_OpenWindows documentation. I will make sure that it is added. The UIMsg_OpenWindows documentation should be the same as the UIMsg_CloseWindows documentation for the activeXDataParam.
 
Message 2 of 2
(3,169 Views)