This example demonstrates how to programmatically change the alias of any device using LabVIEW.
Device aliases show up as Dev1, Dev2, Dev3... by default, but often you will change those to more meaningful names. Programmatically changing the device name may come in handy when distributing applications to multiple systems. This example could be used to change your NI PCIe-6321 to X-Series in an initialization sequence, and then reference it as such in the rest of your application.
LabVIEW 2012 or compatible
Steps to Implement or Execute Code
Retrieve list of all DAQmx devices.
Iterate through list of devices to find desired device.