ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
To download NI software, including the products shown below, visit ni.com/downloads.
This example shows how you can use specific built in UI message codes to instruct the sequence editor
If you are not familiar with TestStand UI messages, read the following tutorial before using this example:
Tutorial: Using TestStand User Interface Messages (UI Messages)
In this example, built in UI message codes are used with the Thread.PostUIMessage method to send commands to the sequence editor. With these UI message codes, you use the ActiveX parameter to specify which executions and/or sequence files the command applies to.
RunState.Thread.PostUIMessageEx(UIMsg_TileWindows, 0, "", {RunState.Execution.AsExecution, Locals.newExecution}, True)
The example implements the following UI message codes:
For more details on the specific parameters that are supported for each of these UI message codes, refer to TestStand Help: UIMessageCodes Enumeration
Note: If these UI messages are posted within a UI which does not support these message codes, they will have no effect, but will not cause any errors.
Interacting with Sequence Editor UI Messages - TS2012.seq
TestStand 2012 or Compatible
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.