NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Batchmodel - Non tiled display

Solved!
Go to solution

I'm runnning a Batchmodel, sequential mode, consisting of 4 sockets.

 

Currently using the testStand Simple user interface as a GUI to run my sequence file.

 

There is no option to tile the execution windows using the Simple user interface, and also don't want to as I have a small screen.

 

What I would like though is for the active execution (there are 4, as there is 4 sockets) to have focus as it is running.

 

Hope this makes sense 🙂

 

Thanks

0 Kudos
Message 1 of 2
(2,950 Views)
Solution
Accepted by topic author morngoose

Hi morngoose,

 

You could add the PostUIMessageEx API call with the UIMsg_OpenWindows eventCode to your test program at the point in the test where you want it to be in the front. From the help:

 

Thread.PostUIMessageEx ( eventCode, numericDataParam, stringDataParam, activeXDataParam, synchronous)

 

UIMsg_OpenWindows–(Value: 22) Post this message to the user interface to instruct it to open a file in a window. If the file or execution is already open, the application brings the file to the front. A file can be specified by a pathname in the stringDataParam parameter or by a PropertyObjectFile object in the activeXDataParam parameter. An execution can be specified by an Execution object in the activeXDataParam parameter. A list of files and/or executions can be specified by an array of references to PropertyObjectFile and Execution objects in the activeXDataParam parameter. For sequence files, the stringDataParam parameter can also contain a '|' separator followed by the name of a sequence to display. If you specify the sequence file in the activeXDataParam parameter, you can specify just the sequence name in the stringDataParam parameter.

 

Hope this helps.

 

-Jack

 

 

Message 2 of 2
(2,945 Views)