Omer,
Thanks for posting to the NI Forums. NI-DAQmx 8.3 added the ability to programatically query device specifications including the device ranges. This allows you to not only check for the available ranges, but also supported terminal configurations, maximum sampling rates, and so forth. In DAQmx 8.3 or greater you can query the available ranges by calling:
int32 __CFUNC DAQmxGetDevAIVoltageRngs(const char device[], float64 *data,
uInt32 arraySizeInSamples);The data returned is a set of pairs consisting of a low value followed by a high value.
There are corrisponding calls to query other specification. You can also obtain a list of available devices by calling:
int32 __CFUNC DAQmxGetSysDevNames(char *data, uInt32 bufferSize);Let me know if you have any additional questions. Also I provided the calls for the C API, if you are using .NET let me know and I can provide the corrisponding .NET calls.
Regards,
Neil S.
Applications Engineer
National Instruments