niSwitch Initialize
Returns a session handle used to identify the switch module in all subsequent NI-SWITCH calls.
This VI creates a new IVI instrument driver session for the switch module specified in the resource name parameter. If multiple topologies are valid for that switch module, NI-SWITCH uses the default topology specified in MAX.
By default, the switch module is reset to a known state.
An error is returned if a session to the specified resource exists in another process. The same session is returned if niSwitch Initialize is called twice in the same process for the same resource with the same topology.
resource name specifies the resource name of the switch module to initialize. Syntax: Optional fields are shown in square brackets ([]).
Default values for optional fields: chassis ID = 1 bus number = 0 Example resource names:
|
|||||||||||||||||||||||||
id query is ignored. Because NI-SWITCH supports multiple switch modules, it always queries the switch module to determine which module is installed. For this reason, this VI may return ID Query Failed error even if this parameter is set to VI FALSE. |
|||||||||||||||||||||||||
reset device specifies whether to reset the switch module during the initialization process.
|
|||||||||||||||||||||||||
error in 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 occurs 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. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| |||||||||||||||||||||||||
instrument handle out identifies a particular NI-SWITCH session established with niSwitch Initialize With Topology, niSwitch Initialize With Options, or niSwitch Initialize and used for all subsequent NI-SWITCH calls. | |||||||||||||||||||||||||
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 indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|