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.