Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-DAQ Mx Base USB-6501 device names

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

0 Kudos
Message 1 of 4
(3,988 Views)

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

 

Andrew B.
Application Engineer
National Instruments.
http://www.ni.com/support
0 Kudos
Message 2 of 4
(3,961 Views)

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

0 Kudos
Message 3 of 4
(3,958 Views)

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:

[DAQmxDevice MyDevice]
ProductType = PCI-6251
DevSerialNum = 0xDEFB88
BusType = PCI
PCI.BusNum = 0x1
PCI.DevNum = 0x8
 
Andrew
Andrew B.
Application Engineer
National Instruments.
http://www.ni.com/support
0 Kudos
Message 4 of 4
(3,954 Views)