02-23-2012 05:42 PM
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
Solved! Go to Solution.
02-23-2012 08:23 PM
Are you running a source code or an exe?. Are you able to detect the DAQ card in MAX?
02-24-2012 10:45 AM
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
02-24-2012 10:57 AM
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 ?
02-24-2012 01:58 PM
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
02-24-2012 02:19 PM - edited 02-24-2012 02:20 PM
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 ![]()
02-24-2012 02:46 PM
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.
02-24-2012 06:16 PM
I get it. the problem is fix.
Thank