Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you programatically rename DAQmx devices?

Hello,  NI MAX allows you to rename DAQmx Devices by clicking around the config tree.   I've been trying to find a way to do that programatically.  LV (I'm using v7.1) allows me to view a list of existing device names, but I haven't been successful in finding a means to rename the devices programatically.    If anyone know of a solution, I would appreciate hearing about it.    Thanks,  Roman......
0 Kudos
Message 1 of 8
(6,025 Views)
Hi Roman,

it's not possible to change the device name of a NI-DAQmx device programmatically.
Why do you want to change the name programmatically? Maybe we can find another solution for you.

Let us know!

Best regards,

Stefan

*********************************************************
Impossible is nothing - nothing is impossible
*********************************************************
0 Kudos
Message 2 of 8
(6,023 Views)

Hi Stefan,  Thanks for the confirmation of my suspicion.   My primary reason is that my present project is using a USB-6016 OEM, which makes it very portable.  The device name appears to be linked to s/n of the hw.   So if I connect one unit to my PC, and manually rename the device name (as NI-Max defaults it to Dev1) to  e.g. FRED.   If I unplug it and try connecting different 6016, I need to go into NI-MAX, delete the first one, and rename DEV1 to FRED again.    I'm trying to automate production test, where they have one PC and many units to verify,  so this process is repeated over and over again.  If I could write a util to perform the rename, that would be so much more efficient.

Secondly, it makes end customer live easier, if I could config via a utility app,  as opposed to instruction them to run NI-MAX, navigate the tree, make the change.    Especially, if they have mulitple units, and as swapping them around.

Roman.....

0 Kudos
Message 3 of 8
(6,014 Views)

Roman,

what you say makes also sense for me.
The only workarournd I know, is that you leave the device setting as it is in MAX as they are (e.g. Dev1, etc.) and let the c. choose the device in LabVIEW with a task control.
But I think you thought about that too. Smiley Indifferent

Good luck,

Stefan

*********************************************************
Impossible is nothing - nothing is impossible
*********************************************************
0 Kudos
Message 4 of 8
(5,988 Views)

To Stefank,

 

If not for the selection of the task control by manually, what other ways are there to select the device of the same model automatically, without any user intervention, not to mention renaming the devices?

 

Cheers

 Clement

0 Kudos
Message 5 of 8
(5,382 Views)

The information in this thread is a bit outdated (it's from 2006).

 

There now exists a System Configuration API which may be used to programmatically rename devices.

 

 

However, depending on your application you may prefer to programmatically determine assigned hardware names and use these instead rather than renaming the devices (I did this just the other day for an Ethernet cDAQ configuration).  There a number of DAQmx properties available to you to help with this endeavor (Product type, serial number, etc.).  This functionality is part of DAQmx and can be used without requiring the System Configuration API.

 

 

Best Regards,

John Passiak
0 Kudos
Message 6 of 8
(5,361 Views)

did you find any solution for your query?

 

i am also looking for same information, how to change DAQmx device name programatically?

 

Looking forward for some help.

 

Regards

Pramod

0 Kudos
Message 7 of 8
(5,199 Views)

NI System Configuration has a Rename Alias method that does it.

 

 

Best Regards,

John Passiak
0 Kudos
Message 8 of 8
(5,190 Views)