Skip navigation


Currently Being Moderated

Switch - Connect Multiple Channels (DAQmx).vi

VERSION 3  Click to view document history
Created on: Nov 13, 2012 6:09 PM by NEWKlear - Last Modified:  Jun 20, 2016 12:51 PM by example_scrub

**Note: This page includes switch code written with the switching palette of the NI-DAQmx driver. In the past, you were able to program NI switches with either the NI-DAQmx or NI-SWITCH driver. As of 2015, the NI-DAQmx switching palette is not recommended for new designs and NI strongly recommends using the NI-SWITCH driver for new designs. For more information, please review the following document: What Drivers Can I Use to Program My NI Switch Modules?




This example demonstrates how to connect and disconnect multiple channels on a switch module.


Instructions for Running:


1. Change Switch Device Name and Topology Name as necessary.

2. Change Connection List to valid channel names for your switch module. 


Refer to the NI Switches Help for the valid channel names for your switch module.


Block Diagram Steps:


1. Set topology.

2. Make connections specified by Connection List.

3. Wait for relay(s) to activate and debounce.

4. Disconnect previous connections.

5. Wait for relay(s) to activate and debounce.

6. Display errors (if any).


I/O Connections Overview:


Refer to the NI Switches Getting Started Guide and NI Switches Help for information about connecting signals to your switch module.



Block Diagram:

Switch - Connect Multiple Channels (DAQmx).PNG

Comments (0)