Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxGetSysDevNames does not work with DIO24

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
(2,629 Views)
Hi Brandon,

Do you have another NI PCMCIA Card that you can test on this computer? What is the device name listed in MAX?

I am going to try to reproduce your error, but in the meantime, see if the same behavior occurs with a different card.

Regards,
Sean C.
0 Kudos
Message 2 of 3
(2,613 Views)
The problem was that I was using the 7.1 NI-DAQ CD that came with the PC Card. Loading the latest 7.40 driver corrected the issue.

Thanks,
Brandon
0 Kudos
Message 3 of 3
(2,602 Views)