Pin to NI-RFmx Session(s) (TSM)
- Updated2024-02-02
- 5 minute(s) read
Pin to NI-RFmx Session(s) (TSM)
Requires: TSM
Returns the NI-RFmx session required to access one pin. You must manually select the polymorphic instance you want to use. Select the single instrument or multiple instrument polymorphic instance based on the number of instruments you expect the pin to be connected to in the pin map. The multiple instrument polymorphic instances are recommended to ensure that your code module will work with any pin map, but you can use the single instrument instance if you know that the code module will never be used with a pin map that has more than one instrument connected to the specified pins.
Single Pin - Single Port
Returns the NI-RFmx instrument session required to access the pin. If more than one instrument is required to access the pin, or if the instrument has more than one port connected to that pin in other sites within the given context, the VI returns an error.
![]()
| Semiconductor Module Context is a valid ActiveX reference to a Semiconductor Module context object. | |
| Pin specifies the name of the pin to translate to an instrument session. If multiple sessions are required, the VI returns an error. | |
| 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. | |
| Pin Query Context is the pin query context object that tracks the sessions and channels associated with a pin query. TSM uses this object to publish measurements and extract data from a set of measurements. | |
| Semiconductor Module Context Out returns the Semiconductor Module Context parameter unchanged. | |
| Instrument Session returns the NI-RFmx instrument session for the instrument connected to the pin. | |
| Port returns the instrument port connected 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. |
Single Pin - Multiple Ports
Returns the NI-RFmx instrument sessions required to access the pin. If any instrument has more than one port connected to that pin in other sites within the given context, the VI returns an error.
![]()
| Semiconductor Module Context is a valid ActiveX reference to a Semiconductor Module context object. | |
| Pin specifies the name of the pin or pin group to translate to instrument sessions. | |
| 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. | |
| Pin Query Context is the pin query context object that tracks the sessions and channels associated with a pin query. TSM uses this object to publish measurements and extract data from a set of measurements. | |
| Semiconductor Module Context Out returns the Semiconductor Module Context parameter unchanged. | |
| Instrument Sessions returns the NI-RFmx instrument sessions for the instruments connected to the pin for all sites in the Semiconductor Module context. | |
| Ports returns the port information for the associated instrument sessions connections 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. |