From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,426 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,418 Views)