Initializing Switch Sessions (TSM)
- Updated2025-04-10
- 1 minute(s) read
In the ProcessSetup callback sequence of a test program, you must initialize all instrument sessions and switch sessions and store them in the Semiconductor Module context. Refer to the Add Switch Sessions VI in the Switching example for an example of how to initialize a set of switch sessions.
Pass NISimulatedMultiplexer for the Multiplexer Type ID parameter of the Get All Switch Names VI to obtain an array of switch instrument names from the pin map. In a For Loop, iterate through each name in the Switches Names array and create a session for each switch instrument. In the same For Loop, use the Set Switch Session VI to associate a switch name with a switch session in the Semiconductor Module context.
Related Information
- Switching (TSM)
This example demonstrates a test program that uses four sites and three shared instruments, as shown in the following figure. The test program shares the DMM1 instrument across all four sites and shares the DMM2 and DMM3 instruments across two sites each. All three instruments contain only one channel routed to each site using a switch (MUX).
- Switch Executive (TSM)
This example demonstrates a test program that uses four sites and three shared instruments, as shown in the following figure. The test program shares the DMM1 instrument across all four sites and shares the DMM2 and DMM3 instruments across two sites each. All three instruments contain only one channel routed to each site using a switch (MUX).