LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to retrive the motherboard/hard disk ID through Labwindows CVI 7.0

Hi all,
I am a CVI 7.0 user. I want to retrive the information of motherboard / hard disk connected to my PC. Is this possible through CVI.
0 Kudos
Message 1 of 6
(5,990 Views)
Hi Amit,

You can definitely do this in CVI. The catch is that there are no predefined function panels to do this. You can always just use the Windows SDK commands to get this information, or build your own function panels using the windows sdk functions. To get hard disk information, use GetVolumeInformation to get volume name, serial number, file flags, and file system type. As for motherboard information, what specific details are you looking for? I would suggest looking into WMI (Windows Management Instrumentation) for functions. Here are some useful links:

Link 1

Link 2

Link 3


Hope this helps!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 2 of 6
(5,990 Views)
Just adding to this... here is a small example that I had from some time ago. It gets the HD information using GetVolumeInformation. To get some basic hardware information you can use the function GetSystemInfo to get some basic architecture information, number of processors, etc.

Rememeber that you must have SDK support installed in order to call this functions. Just run the CVI installer from Add/Remove programs and make sure that sdk support is installed.

I hope this helps.

Regards,


Juan Carlos
N.I.
0 Kudos
Message 3 of 6
(5,989 Views)
Hello,
 
Could someone give some hints on how to use WMI classes in CVI ?
 
Bertrand
0 Kudos
Message 4 of 6
(5,713 Views)
Hi Bertrand,
 
I was searching MSDN and I found this Example on Creating a WMI Application that should be helpful.  I found another helpful example by searching google groups.
 
Hope this helps!  By the way, to get input from other LabVIEW users who may have implemented something like this, you'll have better luck creating a new post since this one is several years old.
 
Good luck!
Megan B.
National Instruments
 
0 Kudos
Message 5 of 6
(5,661 Views)
Just to be precise: the attached CVI example gets a serial number assigned by the OS to the HDD partition (if you format it another serial number will be assigned).
If you want to obtain something unique and not changeable, you should get the serial number written by the HDD manifacturer.
Have a look at this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getsysteminfo.asp
0 Kudos
Message 6 of 6
(5,402 Views)