Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically detect the card

hi
 
how to programatically detect the card is a digitai I/O card or not?
I have a DAQ card in my PCI slot and i would like my applilcation
to detect the whether its  DAQ or Digital I /O card or not.
 
If its other like relay or switch card my application does not need to interact
with the cards.
 
how can i achieve this.
 
regards
rags
0 Kudos
Message 1 of 2
(6,186 Views)

Hi Rags,

You can obtain the names of all devices in your computer by using  the DAQmxGetSysDevNames() function, and then use the DAQmxGetDevProductCategory() function to see if the board is a digital IO board. (see picture below, taken from DAQmx C Reference Help). This reference guide can be found under Start >> Programs >> National Instruments >> NI-DAQ.

 

This forum and this forum may be helpful if you are running into errors.


Message Edited by David L. on 09-06-2007 01:07 AM

David L.
Systems Engineering
National Instruments
0 Kudos
Message 2 of 2
(6,170 Views)