01-27-2009 11:50 AM
I'd like to be able to determine, in software, how many analog I/O and digital I/O channels my board has, along with information about the counter/timer and other features. Also, if possible, the interrupts and DMA channels, and the DAQ library version. I'm using a PCI-6220 board now but my software will also use a PCI-6229 board and possibly others. I need for it to adapt accordingly and I'd rather get this information from teh board itself than from a spec sheet. I was able to do this with another NI product, a USB-based I/O device, I forget teh model number.
Thanks.
01-27-2009 12:03 PM
I forget to mention that I am using the DAQmxGetDevProductType and AQmxGetDevSerialNum functions. I'm hoping that there are other functions that can tell me more about the board in my system.
01-28-2009 10:05 AM
Hi m610,
The full list of DAQmx device properties can be found in the DAQmx C Reference Help (Start»All Programs»National Instruments»NI-DAQ) under NI-DAQmx C Functions»NI-DAQmx C Properties»List of Device Properties.
I hope this helps,
01-28-2009 02:32 PM
Thanks for the reply.
Unfortunately I couldn't find anything in the funtions section of that help file. I forget where I ran across the ...GetName and ...GetSeriaNr functionsbut it wasn't in this section. I just found the...MajorVersion and ...MinorVersion functions by digging through the properties listing.
It looks like there are many more fundtions than what the help files cover. Of course, I am using version 7.4, the version that came with my 6220 board, so that may have changed in more recent versions.
01-28-2009 04:46 PM
Hi m610,
Many of the device capability properties were added in DAQmx 8.3. You'll need to upgrade to a newer version of DAQmx to use DAQmxGetDevAIPhysicalChans() and such.
Brad