Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain NIDAQmx board physical AI count form C

I need to obtain from NIDAQmx a real hardware AI channel count for a specific device, exist some kind of function to obtain this in VC++ (without measurement studio)?
The only function I found is DAQmxGetDevProductType that return the board type, with this information I have to compile a table BoardType/AI chan count in my sw.

Thanks Massimo.
0 Kudos
Message 1 of 2
(2,420 Views)
Hi, there isn't a specific function to retrieve channel count for a specific device, you surely can build a lookup table to associate detected board type to number of channel of that device.
Another workaround could be to try to configure an acquisition on a specified channel (ai8-ai16-ai32...) and verify the task, until you get an error (something like -200170).

Hope this help.

Ciao.

NicolaC.
National Instruments
Message 2 of 2
(2,412 Views)