Pin to Switch Sessions (TSM)
- Updated2024-02-02
- 3 minute(s) read
Pin to Switch Sessions (TSM)
Requires: TSM
Returns the switch sessions, switch routes, and new Semiconductor Module context objects required to access a switched pin. You must always close references to the Semiconductor Module contexts, even if you do not use them in your code module.
| Semiconductor Module Context is a valid ActiveX reference to a Semiconductor Module context object. | |
| Pin specifies the name of the pin to translate to sessions and switch routes parameters. | |
| Multiplexer Type Id specifies the type ID for the multiplexer in the pin map file. When you add a multiplexer to the pin map file, you can define a type ID for the multiplexer, such as the driver name. Multiplexers in the pin map that do not specify a type ID have a default ID of NIGenericMultiplexer. Leave this parameter unwired to use the default value. | |
| error in (no error) describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. | |
| Switch Routes returns the routes required to connect an instrument channel to the pin. | |
| Semiconductor Module Context Out returns the Semiconductor Module Context parameter unchanged. | |
| Semiconductor Module Contexts returns an array of Semiconductor Module context objects. Each element in the array represents a site that must be executed serially. Use each Semiconductor Module context object to query the pin map and publish data. You must always close references to the Semiconductor Module contexts, even if you do not use them in your code module. | |
| Session Data returns the session data required to access the switch that connects an instrument channel to the pin. | |
| error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error. |