Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I name all my DAQs the same so they are universal across PCs?

I have two usb daqs from NI, and they are currently labeled Daq1 and daq2, the problem is that each works only with a specific program sicne the daq assitant is only configured to one. I tried to configure it to both but got a does not support multiple devices error. What I want is to take any DAQ plug it into any PC I have running my program and have it work. Both are collecting the same data and both programs are otherwise identical.

0 Kudos
Message 1 of 11
(4,768 Views)
With DAQmx property nodes, you can query the system and determine the names of the installed devices. You should give up using the DAQ Assistant if you actually plug in both though I don't understand why you can't always use dev1 if the programs are identical. If you plug in a single device, under what circumstances does it appear as dev2?
0 Kudos
Message 2 of 11
(4,763 Views)

How can I rename the other daq in max? it has both listed and if i try and turn daq2 into daq1 it says name in use. deleting one to rename the other and vice versa seems to be an endless loop....

0 Kudos
Message 3 of 11
(4,760 Views)
I still don't understand why you would have both plugged in at the same time if you only need one.
0 Kudos
Message 4 of 11
(4,758 Views)

I don't. here's the setup:

 

Laptop #1, has the program executable and only works with DAQ1 daq.

 

Laptop #2 also has the program executable (and a copy of labview for editing) and only works with daq2 daq.

 

If go in max on laptop #2 both my daqs are listed ( i assume because that is where the program was written) so i cannot change the name of one so they are identical in the program. meaning that only the daq selected in the daq assitant for that executable/program version will work with that daq. how can I change this so that I can plug daq2 into the daq1 laptop?

0 Kudos
Message 5 of 11
(4,754 Views)
Remove daq2 since you don't need both to run at the same time. It just seems your basic mistake was having two plugged in at the same time. You can manually clean up MAX when you only have a single device or as I said, skip the DAQ Assistant, get the list of DAQ names, and use a single program that does not have the device name hard coded like you have now.
0 Kudos
Message 6 of 11
(4,749 Views)

Removing it does not remove it from MAX it just gets grayed out. I only had both plugged in at the same time for that one instance, otehrwise they are never both in use on one PC. I will give it another try though.

0 Kudos
Message 7 of 11
(4,746 Views)
That does not work. All I can do is rename them but I cannot give them the same name. If I plug a daq into a computer that has already had a daq plugged into it at any point in its life it gives it a new name. How can I change this? I just want to be able to use any daq on any computer. Is the only way to do this to build a selection button on my vi?
0 Kudos
Message 8 of 11
(4,740 Views)
Ive decided the easiest way to do this is to just prompt the user to pick which daq at the outset. How can I set up the user prompt box to have a menu?
0 Kudos
Message 9 of 11
(4,734 Views)

To use the old name, do either of the following before renaming your newly plugged in DAQ device.

 

1.  Right Click on the disconnected DAQ device in MAX and select delete.

 

2.  Rename the disconnected device to something else.

 

 

 

The DAQmx Device Name Control populates itself with the devices currently present in your system--to get a passable dialog box you could just use this within a modal window.

 

 

Best Regards,

John Passiak
0 Kudos
Message 10 of 11
(4,719 Views)