LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Application only work on one DAQ card

Solved!
Go to solution

Hi, All:

 

I built an installer with DAQmx using USB-6218 card. It was working fine on the target machine. But when I changed to an other USB-6218 card. it does not recognize the new USB-6218 card. How to make the application to recognize any DAQ card?

 

Thank

 

DWT 

0 Kudos
Message 1 of 8
(2,960 Views)

Are you running a source code or an exe?. Are you able to detect the DAQ card in MAX?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 8
(2,954 Views)

Hi, P Anand:

 

I had problem on both source code and exe. and found that the MAX assign a new device name to the new USB-6218 card. Because my application is going to be used on more than one target machine, I just want to find out how to make my application works with any USB-6218 card.

 

Thank

 

 

0 Kudos
Message 3 of 8
(2,938 Views)

There are different ways to do that:

 

- Let the user select the channels/device for a DAQmx drop down list(s) on you front panel.

 

- Make a configuration file, that you read in at program start. This way you can make changes to that file, and it will be reflected in the program once it starts.

 

- You are able to rename a device in MAX.

 

dwt: Are the two devices you are having trouble with, having the same device name in max ?

 

0 Kudos
Message 4 of 8
(2,931 Views)

 

I have 2 USB-6218 cards, A and B. I plug card A to the computer, the MAX shows "DEV1", unplug card A and then plug card B on the same computer, the MAX shows card B is "DEV2".

 

I want to know how to take care this issue automatically.

 

 

Thank

 

 

 

 

0 Kudos
Message 5 of 8
(2,915 Views)
Solution
Accepted by topic author dwt

Hi dwt,

 

Take a look at this community example - it lets you find devices via the appropiate product name, rather than its device alias.  The example could do with some editing, but I think it will help you out Smiley Happy

 

Identy+BD.png


Regards,

Peter D

0 Kudos
Message 6 of 8
(2,910 Views)

Pete,

 

That works fine if you haven't used Virtual channels or tasks that were set up in DaqMX. If you do that you can not use this method. The only way I found to fix that was to rename the device so that it is named properly. I am not sure why NI thinks this is a good way of doing business. We are currently writing our own system to get around DaqMX so we do not have to worry about his anymore. It is sad that I have to spend many hours of my time to get around something that is so ridiculous.

 

When our new system is done I will never have to worry about DaqMX again.

Tim
GHSP
0 Kudos
Message 7 of 8
(2,905 Views)

I get it. the problem is fix.

 

Thank

0 Kudos
Message 8 of 8
(2,890 Views)