To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI allows the user to read AI from a device that has a known serial number regardless of device name changing or for example in a CompactDAQ changing slot.
Description
This example shows how to read a DAQmx AI channel based on the device's serial number, so in case the user has a system where devices can change slots in a cDAQ (in case of C Series modules for example), the device is changed from USB port or simply change device names, the acquisition will still work correctly. This example also contains a VI in which the user can actually see which devices are present at the moment in his system and their corresponding serial numbers, so he can begin to work with the examples with no delays.
Requirements
Software
Hardware
Steps to Implement or Execute Code
1. Obtain the desired device serial number by using FindSerialN.VI (subVI)
2. Insert the serial into the Serial Number text field.
3. Select the AI channel to read, rate and samples per channel
4. Start the VI
5. Stop the VI.
Additional Information or References
**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.
thanks for posting. please add "LabVIEW" to your tags and rename your attachment to include the LabVIEW version. "_lvXX.vi" would be fine.