To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example programmatically identifies the model of each module in a chosen cDAQ chassis.
Description
The code uses the DaqSystem class to load the chassis as a Device object. Then, a foreach loop iterates through the list property ChassisModuleDeviceNames. Each module is loaded as a Device object using the DaqSystem class. The ProductType property of the module object returns the string that indicates the module type, which is added to the list of modules.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
Form
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.