How Do I Access Hardware Information From WMI in LabVIEW? Primary Software: LabVIEW Development Systems>>Professional Development SystemPrimary Software Version: N/A Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I need to access information from the Hardware in my computer. I have been told I can do this using WMI. How can I use this? Solution: Windows Management Instrumentation (WMI) is the infrastructure for management data and operations on Windows-based operating systems. You can write WMI scripts or applications to automate administrative tasks on remote computers. WMI also supplies management data to other parts of the operating system and products, for example, System Center Operations Manager, formerly Microsoft Operations Manager (MOM), or Windows Remote Management. To access this from LabVIEW you have to call the .NET ensemble: Management Object Searcher. In this object you have to query the specific part of WMI. For example if we want to know the Load of the Processors in a Dual Core Computer, the object that contains this is Win32_Processor Class (complete description of the class in the link section). From this class we call the method get and for every value obtain you can search the properties. You can use the specific properties as "LoadPercentage" or we can obtain a text with all the properties. In the Attachments sections there’s a example to obtain the information from the Processor. Also an Example for Temperature Probe is provided (the function of this depends on the computer hardware). Not all computers support this property. Related Links: External Link: MSDN: Windows Management Instrumentation (WMI) External Link: MSDN: Win32_Processor Class External Link: MSDN: Win32_TemperatureProbe Class Attachments:
Report Date: 05/21/2008 Last Updated: 11/03/2008 Document ID: 4LKC24YN |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
