03-21-2005 11:23 AM
03-21-2005 01:08 PM
03-21-2005 02:35 PM
03-21-2005 03:34 PM
10-15-2018 03:08 AM
Hi
these file cant be open with newest labview version
I am having now labview 2015 , and these vi written with labview 5 and 4.01 ,
its cant be open
10-15-2018 04:33 AM
@TommyBoy wrote:
Hi,
I want LabVIEW to read device-information from the PC it's running on.
- Processor type
- Clock speed
- hard disk serial
- amount of RAM
- ...
I presume that the best way of working is using WinAPI calls.
I've tried to do it but I can't make it work...
Please advise...
While some of this information is accessible with simple WinAPI calls, others are more complicated. WMI is the Windows technology to access just about anything you may ever want to know about your machine if it is available at all, but its API is COM based and that is not something you can easily interface with LabVIEW. Basically while COM is the underlaying technology for ActiveX Microsoft did not go all the way to make it a full ActiveX interface and therefore you can not use the ActiveX functionality in LabVIEW.
I assume that there would be some .Net component that allows you to access WMI too, and that would be easiest. The way I went in the past about that is to write a DLL that translates between the COM WMI API and LabVIEW but that is not something I can post here and it is somewhat involved requiring you to know about C programming a bit.
Another option that might actually give you quite a bit of information although not all that WMI can provide, would be the NI System Configuration API. That is a platform independent API to read a selected number of machine specific values including most of what you listen. It works on all NI RT platforms but also under Windows, Linux and Mac OS X.