LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read the CPU temperatures of a RT PC [LabVIEW RT]

Hi, I am programming a stand-alone RT application with LabVIEW RT that runs on a regular PC. I would like to monitor the different system temperatures (CPU,...) and if possible the fans speed. I found an example that performs this task for PXI systems but not for regular PC. Does anybody know if this is possible and how I can do it? Thanks
0 Kudos
Message 1 of 8
(5,687 Views)
On May 15, 4:40 am, titi_nicolas <x...@no.email> wrote:
> Hi,
>
> I am programming a stand-alone RT application with LabVIEW RT that runs on a regular PC.
>
> I would like to monitor the different system temperatures (CPU,...) and if possible the fans speed.
>
> I found an example that performs this task for PXI systems but not for regular PC.
>
> Does anybody know if this is possible and how I can do it?
>
> Thanks

Here is some things to consider.

The first thing you need to do is find out if your BIOS has "Hardware
Monitoring" Most ASUS "do it yourself" motherboards have hardware
monitoring built into their BIOS. I don't know if computers you buy
from companies like Dell or HP have hardware monitoring capability
built into their BIOS. Next when running in Windows you need software
that can retrieve the data from the BIOS. I don't know of any free
software that does this. I found one outfit that sells a product
called Monitor Mechanic for $49 that you can run in Windows to monitor
your hardware. See: http://www.hardware-monitor.com/ I don't know if
Monitor Mechanic is usable with Labview Rt software.

If I run across any free software for retrieving CPU temperature and
fan speed data from a BIOS I will update my post.

Howard

0 Kudos
Message 2 of 8
(5,672 Views)

Here is a solution that reads the temperature via a VBS script. The script uses WMI to access the Temp.

Saved as LV 8.0

Robert 'Red' Hoar

Staff Systems Engineer

Certified LabView Developer

www.vi-tech.com

 (972) 233-1950 x 208

robert.hoar@vi-tech.com

(Cell) (817) 312-5413 (Fax) (972) 233-1550  

 



Message Edited by srhoar on 05-15-2008 11:34 AM
Message 3 of 8
(5,663 Views)
On May 15, 10:22 am, hrh1818 <hr...@att.net> wrote:
> On May 15, 4:40 am, titi_nicolas <x...@no.email> wrote:
>
> > Hi,
>
> > I am programming a stand-alone RT application with LabVIEW RT that runs on a regular PC.
>
> > I would like to monitor the different system temperatures (CPU,...) and if possible the fans speed.
>
> > I found an example that performs this task for PXI systems but not for regular PC.
>
> > Does anybody know if this is possible and how I can do it?
>
> > Thanks
>
> Here is some things to consider.
>
> The first thing you need to do is find out if your BIOS has "Hardware
> Monitoring" Most ASUS "do it yourself" motherboards have hardware
> monitoring built into their BIOS. I don't know if computers you buy
> from companies like Dell or HP have hardware monitoring capability
> built into their BIOS. Next when running in Windows you need software
> that can retrieve the data from the BIOS. I don't know of any free
> software that does this. I found one outfit that sells a product
> called Monitor Mechanic for $49 that you can run in Windows to monitor
> your hardware. See: http://www.hardware-monitor.com/ I don't know if
> Monitor Mechanic is usable with Labview Rt software.
>
> If I run across any free software for retrieving CPU temperature and
> fan speed data from a BIOS I will update my post.
>
> Howard

I still haven't found a free program. But I did find a shareware
program called Hardware Sensors Monitor. See http://www.hmonitor.net/
The site shows a long list of motherboards it is compatible with. It
even shows the temperature of the CPU on your Video display board.
The program has a free two week trial period to allow you to determine
if the software is compatible with your motherboard before you buy it.
But with this product it is not obvious how you would transfer data
from it to a Labview VI. The cost is 22 euros or about $45 US.

Howard
0 Kudos
Message 4 of 8
(5,642 Views)
Motherboard monitor, speedfan and coretemp are all free and monitor system temperatures (the first two can handle fans as well). Motherboard monitor is a bit dated but I think it has an api you could access. Coretemp apparently just added an api in the current beta but it only handles cpu temperatures. I'm not sure about speedfan. You should double check that the monitoring programs are measuring what you think they are (since they have to take guess on what is what). The tempurature probs can also be a bit off as well (coretemp tends to be the closest of 3 since it tries to guess Tjunction max). What you can and can't monitor depends on your motherboard (any should do cpu temp at least with current chips from amd and intel).
0 Kudos
Message 5 of 8
(5,637 Views)
Thank you for the VBS example.
Nevertheless it does not work properly.
When I launch it directly from the command line I get an errror:
 
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
C:\...\processorTemp.vbs(13, 1) (null): 0x8004100C 
 
Do you know what the problem is?
 
 
PS: I am using MS Vista so I am pretty sure that WMI is installed.
0 Kudos
Message 6 of 8
(5,627 Views)

Ok, the previous error I reported is simply because my hardware does not support the WMI query.

 

Nevertheless, I want to access the temperatures on a LV Real-Time system.

All the previous ideas are for Windows OS and I don't really see how I can use a piece of Windows software under LV RT. Is it that easy that I am missing it?

 

Thanks for helping.

0 Kudos
Message 7 of 8
(5,610 Views)
HI,
 
I would imagine is you can find the SMBus drivers for your specific motherboard that you could retrieve the information you want. Similar to the PXI example, you will have to install the driver in the RT system and your devolopment computer.
Sappster
0 Kudos
Message 8 of 8
(5,599 Views)