Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get config data about NI boards in the system?

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.

0 Kudos
Message 1 of 7
(6,803 Views)

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);

Regards,

Hassan Atassi
Senior Group Manager, Digital Support
0 Kudos
Message 2 of 7
(6,776 Views)

 

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.

0 Kudos
Message 3 of 7
(6,773 Views)

Hi avmikh,

 

When you say a previous version of NI Driver are you referring to Traditional DAQ?

Regards,

Hassan Atassi
Senior Group Manager, Digital Support
0 Kudos
Message 4 of 7
(6,756 Views)

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

0 Kudos
Message 5 of 7
(6,540 Views)

Hi Neil,

 

Check out this example program: Programatically accessing list of NI-DAQmx devices in a computer using VC++

 

 

Regards,

Hassan Atassi
Senior Group Manager, Digital Support
0 Kudos
Message 6 of 7
(6,534 Views)

Hi Hassan,

 

Thanks for the reference.  I'll check it out and get back to you.

 

Regards,

 

- Neil Shore

0 Kudos
Message 7 of 7
(6,528 Views)