10-23-2001 06:36 AM
10-24-2001 02:53 PM
05-27-2009 05:00 AM
Has this situation changed at all since 2001? I couldn't see any relevant functions in the NIDAQmx C function documentation (cdaqmx.chm) - but then DAQmxGetDevProductType isn't listed there either (at least, it's not in the index or search).
It would also be useful to query other device capabilities, such as available voltage range (gain) settings.
I would like my software to know whether a device has at least n channels of analog input. I could construct my own table mapping device names to device characteristics, but this seems like a tedious exercise. The alternative is to attempt to create a task with n channels and catch the error. However, I'm not sure that technique would work with voltage ranges.
Any suggestions?
05-27-2009 08:49 AM
You posted your question to an old thread about NI-DAQ and you want to know about DAQmx. They are completely different drivers and all of the information you want is in DAQmx and listed in the NI-DAQmx C Reference Help.
To get a list of devices, you use DAQmxGetSysDevNames. There are numerous device properties such as DAQmxGetDevAIVoltageRngs and DAQmxGetDevAIPhysicalChannels.
05-27-2009 10:12 AM
05-28-2009 04:10 AM