Skip navigation

Community

Currently Being Moderated

Switch - Scanning - Software Triggered (DAQmx)

VERSION 3  Click to view document history
Created on: Nov 13, 2012 3:59 PM by Chris-G - Last Modified:  Jun 20, 2016 12:50 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?

Description:

 

This example demonstrates how to scan a series of channels on a switch using software scanning.

 

Instructions for Running:

 

1. Change Switch Device Name and Topology Name as necessary.
2. Change Scan List and Repeat Mode as necessary. 
3. Press the Next Connection button to advance to the next entry in the scan list.

 

Refer to the NI Switches Help to determine if your switch supports scanning, the scan list syntax, and the valid channel names for your switch module.

 

Block Diagram Steps:

 

1. Set topology.
2. Specify scan list (creates switch scan list task) .
3. Start scanning.
4. Send software trigger to switch module when Next Connection button pressed on front panel.
5. Stop scanning.
6. Clear switch scan list task.
7. 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 - Scanning - Software Triggered (DAQmx).PNG

Attachments:
Comments (0)