Overview
This VI will make an endpoint connection from one column to another in multiple NI SwitchBlock devices using NI-DAQmx.
Description
The following are steps illustrated on the block diagram of this example:
- Opens a session to both switch devices and sets their topology to the one you specify in Topology Name.
- Creates an array of row names and an array of analog bus names for your specific device.
- Reserves all of the rows for routing in preparation to connect over these rows on your NI SwitchBlock device.
- Allows the sharing of your analog bus over multiple devices.
- Makes a connection from one column to another and waits for the switch to finish closing.
- Terminates the NI-SWITCH session and stops the task.
- Handles any errors that have occurred.
Requirements
Software
LabVIEW version 2012 (or compatible)
NI-Switch Driver version 4.6 (or compatible)
Hardware
NI SwitchBlock and NI SwitchBlock Modules
Refer to the NI Switches Getting Started Guide and NI Switches Help for information about connecting signals to your switch module
Steps to Implement or Execute Code
- Select your NI SwitchBlock device name, 'Configured Topology', your column to connect, and the analog bus to use in this connection
- Repeat step 1 for both NI SwitchBlock devices that you are using
- Run the VI and the connections between the two devices will be made
Refer to the NI Switches Help for the valid channel for your switch module.
Additional Information or References
Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**