01-18-2011 04:57 PM
I'm using VC++ (no .NET and no LabView) and would like to know what NI boards are currently installed in the system. I suspect one of the best ways would be to use WMI, but I don't know which providers may give me information about NI-related configuration available in the system - what kinds of boards, driver versions and may be others.
01-19-2011 03:51 PM
Hi avmikh,
If you are using a DAQmx device you can call the C API for DAQmx in VC++ and then use this function: int32 __CFUNC DAQmxGetSysDevNames(char *data, uInt32 bufferSize);
01-19-2011 07:21 PM
Thank you for suggestion.
I'm using both DAQmx and a previous version of NI driver. I'd like to have a solution, which would check if a previous driver is installed, if DAQmx is installed, and which NI board, if any, is present in the system. At this point I need just some generic information, like "PCI 6229 board", for example.
01-20-2011 05:08 PM
Hi avmikh,
When you say a previous version of NI Driver are you referring to Traditional DAQ?
04-28-2011 11:00 AM
Hi,
I'd like to add my 2 cents here. My system is using D/A's, Digital I/O, A/D via DAQmx, and waveform generators via niFgen. Code is in C/C++. The software has to control different boards depending upon the applications specific requirements. How can I, at run time, get a list of all the National Boards connected to the PC?
Thanks and Regards
- Neil Shore
LTI, Inc.
Sr. Software Engineer
04-29-2011 08:37 AM
Hi Neil,
Check out this example program: Programatically accessing list of NI-DAQmx devices in a computer using VC++
05-02-2011 09:43 AM
Hi Hassan,
Thanks for the reference. I'll check it out and get back to you.
Regards,
- Neil Shore