This example demonstrates how you can use a code module to set the bounds for code module VIs based on its associated socket index. When executing in the parallel batch model, each parallel execution has a unique 0-based socket index to identify it, accessible using this property
By passing this property to the code module, the example code tiles each panel so it is clear which socket they are associated with.
The implementation for this positioning is located in the SetBoundsBySocket.vi, which can be copied and used in other applications. This subVI also updates the title of the panel to indicate the test socket.
Hardware and Software Requirements
Set Bounds By Test Socket - TS2012.zip
TestStand 2012 or Compatible
LabVIEW 2013 or Compatible
Steps to Implement or Execute Code
Open the attached sequence file, and execute it using Execute » Single Pass. The sequence file is configured to use the batch process model and will execute the sequence in 4 separate test sockets.
Observe that the code module is tiled such that you can see the front panel of each module