09-07-2016 08:30 AM
Hello!
We have a few USB-6501 devices hooked up to our RHEL 6.7 machine. It seems the auto-assignment of device names (dev1, dev2) is by serial number and when we change devices hooked up to the machine the names are rearranged. Is there any way to override the auto-assigned names and assign them by hand?
Thanks!
Paul
09-08-2016 10:23 AM - edited 09-08-2016 10:24 AM
Hi Paul,
Are you talking about a way to name the devices outside of renaming them in NI max? Or are you looking to do so programatically? Check this out if you're looking to do it programatically: https://decibel.ni.com/content/docs/DOC-20153
Andrew
09-08-2016 10:28 AM
Hi Andrew,
I'm running on Red Hat Linux 6.7 so I don't have NI MAX using NI DAQ Mx Base and C code. Since we are using USB devices, I think I have to stick with NI DAQ MX Base. Looks like NI DAQ MX might have a way to name them but not sure if it does or if I can use it with the USB-6501.
Thanks,
Paul
09-08-2016 10:55 AM - edited 09-08-2016 10:57 AM
Hi Paul,
Sorry, I misread your OS. Check out this tutorial, it talks about renaming in the config file after declaration. I'm not sure if this is what you're looking for. I'm not sure if the option to do this is also available in DAQmx Base. http://www.ni.com/tutorial/4620/en/
NI-DAQmx names the device “Dev1”, which is how you reference it in LabVIEW and C.
Additionally, you can rename a device name in your configuration file after the DAQmxDevice declaration. For instance, edit the preceding configuration as shown below and import your changes: