Overview
This example demonstrates a programmatic method for selecting available devices on a system for DAQmx task configuration.
Description
Employing methods to programmatically select available devices and physical channel types, allows developers to avoid User input for application deployment. The example below uses the DAQmx System Property Node to isolate the first available Digital Input (DI) lines, and forwards a selected subset for DAQmx Task configuration. This example is meant to be demonstrative of the available System and Device properties that may programmatically be extracted. Further logic may be implemented to isolate specific device names, bus types, or additional I/O types.
Requirements
Software
- LabVIEW 2012 or compatible
- NI-DAQmx 9.5.5 or compatible
Hardware
- NI Multifunction DAQ Device with at least one counter
Steps to Implement or Execute Code
1.Download the attached VI.
2. Set the DAQ device.
3. Run the VI.
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**