Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxGetSysDevNames does not work with DIO24 PCMCIA

I have successfully used DAQmxGetSysDevNames and DAQmxGetDevProductType to enumerate the available adapters in a desktop system. It successfully found a DIO-6503 and/or a DIO-6025E in the same system.

When I try the same functions on a laptop/notebook using the DAQ-DIO-24 PC Card (PCMCIA), the function returns 0 for success with a null string for the device names. Faking "Dev1" into DAQmxGetDevProductType returns DAQmxErrorInvalidDeviceID (-200220). The DAQ-DIO-24 appears in MAX and the test panels work as expected.

1) How can I determine what DAQ adapters are in a laptop system using C.
2) What is the best way to enumerate/determine what adapters are available in a system?

The application I am programming uses the C calls to configure/read/write the registers on the adapters. Depending on what type of card is installed in the system causes the appropriate configuration to be chosen. We currently use a configuration file to determine what mode/registers to use. Having the application dynamically determine the adapater w/o user interaction would make for a better application and cut support interactions/costs.

-Brandon
0 Kudos
Message 1 of 3
(3,671 Views)
Brandon,
You are taking the correct approach to finding out programmatically what devices are present in your system. I have a couple questions/troubleshooting suggestions. What version of NI-DAQ do you have on the laptop? Is it the same version as on your desktop machine? You might want to get the latest version (NI-DAQ 7.4) at the link below. Have you been able to successfully use any other DAQmx C functions? Maybe try DAQmxResetDevice(), or try a shipping example, for example, any in the following directory: C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C. FYI, for information on C functions, there is a DAQmx C Reference Help file that installed into your NI-DAQ directory when you installed NI-DAQ.
Also, what OS is on your laptop?

Here is the link to the Multifunction DAQ Driver
http://digital.ni.com/softlib.nsf/webcategories/85256410006C055586256BBB002C128D?opendocument&node=132060_US

-Alan A.
0 Kudos
Message 2 of 3
(3,638 Views)
Loading the latest 7.40 driver corrected the issue. I had been using the 7.10 Driver CD that came with the adapters.

Thanks,
Brandon
0 Kudos
Message 3 of 3
(3,634 Views)