Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-10-2008, 10:53 AM   #1 (permalink)
StealthTools's Avatar
 
Hardware/VB.net/Anti-vir

Join Date: Mar 2008

Location: TN - Intel, Samsung, and NVIDIA 4 EvR!

Posts: 515

StealthTools is on a distinguished road

Send a message via MSN to StealthTools
Default VB.NET reading CPU Temp

I heard it is impossible to read the CPU temperature using only VB.NET..

I also heard that it is possible importing "system.management" and having a motherboard that supports the temp reading chip or something or another..

Anyone have and knowledge on this?

Here's where I have looked so far:

Hardware Monitor

Reading CPU Temperature (WMI) : Visual Basic Language : Visual Basic : MSDN Forums

Last edited by StealthTools; 10-10-2008 at 11:06 PM.
StealthTools is offline  
Old 10-14-2008, 09:11 PM   #2 (permalink)
Baez's Avatar
 

Join Date: Sep 2005

Location: Toronto, Canada

Posts: 5,466

Baez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of light

Default Re: VB.NET reading CPU Temp

It is impossible to only use VB. You need to use C/C++ to access the temperature monitor or use the info provided by WMI (if your board supports it of course). VB isn't powerful enough of a language to do that sort of thing. By powerful I mean it can't access all of the system's hardware like a top level language such as C++.

Can I ask why you're trying this with VB of all languages? I can help you implement the C++ code if you know a C based language.
__________________


Last edited by Baez; 10-15-2008 at 12:10 AM.
Baez is offline  
Old 10-15-2008, 08:50 AM   #3 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default Re: VB.NET reading CPU Temp

Quote:
It is impossible to only use VB.
Actually, that's not true. WMI can be accessed via .NET, so it is possible (assuming he's using VB.NET and not VB 6). He could also use platform invoke (ie, interop) to call any native methods, as well.
jaeusm is offline  
Old 10-15-2008, 12:52 PM   #4 (permalink)
Baez's Avatar
 

Join Date: Sep 2005

Location: Toronto, Canada

Posts: 5,466

Baez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of light

Default Re: VB.NET reading CPU Temp

^ Read my second sentence.
__________________

Baez is offline  
Old 10-15-2008, 01:45 PM   #5 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default Re: VB.NET reading CPU Temp

If you're using VB.Net, then the functionality is part of the underlying framework. In his case, it's transparent. If you're really wanting to split hairs about this, then your second sentence applies to C++ or C, as well. There's always going to be an intermediary at some level. In this instance, we're specifically talking about writing a Windows application that can retrieve values from the system hardware. While C++ doesn't need to go through .NET (though it could), it does have to communicate with an OS subsystem using win32 or some other API.
jaeusm is offline  
Old 10-15-2008, 03:25 PM   #6 (permalink)
StealthTools's Avatar
 
Hardware/VB.net/Anti-vir

Join Date: Mar 2008

Location: TN - Intel, Samsung, and NVIDIA 4 EvR!

Posts: 515

StealthTools is on a distinguished road

Send a message via MSN to StealthTools
Default Re: VB.NET reading CPU Temp

I want to learn how to code a program that shows the CPU temp and the only language I am familiar with is VB.NET :| If I had the source for it in C++ though i'm sure I could figure it out...
StealthTools is offline  
Old 10-15-2008, 07:12 PM   #7 (permalink)
Baez's Avatar
 

Join Date: Sep 2005

Location: Toronto, Canada

Posts: 5,466

Baez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of light

Default Re: VB.NET reading CPU Temp

Quote:
Originally Posted by jaeusm View Post
If you're using VB.Net, then the functionality is part of the underlying framework. In his case, it's transparent. If you're really wanting to split hairs about this, then your second sentence applies to C++ or C, as well. There's always going to be an intermediary at some level. In this instance, we're specifically talking about writing a Windows application that can retrieve values from the system hardware. While C++ doesn't need to go through .NET (though it could), it does have to communicate with an OS subsystem using win32 or some other API.
I fully agree with your explanation but I didn't think Stealth would want to start "splitting hairs" .

Stealth the easiest way for you to use VB would be to find a C source code driver. I would recommend you do it this way as WMI is more situational.
__________________

Baez is offline  
Old 07-17-2009, 10:44 PM   #8 (permalink)
 
Newb Techie

Join Date: Jul 2009

Posts: 1

1RealTruth is on a distinguished road

Default Re: VB.NET reading CPU Temp

I know this is an old post but I have a question. While you guys were splitting hairs, it doesn't look like you answered the question..... Although I am just starting to get back into programming after a 23 year absence, maybe I missed the answer.

The reason I bring it up is because I'm looking for similar info.

Thank you.
1RealTruth is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting brewabeer Overclocking, Case Mod, Tweaking PC Performance 1 05-26-2008 12:09 AM
My CPU Temp. BlueHaze Hardware Troubleshooting 4 03-21-2008 03:22 PM
question about what to worry about cpu temp or core temp? zerodayATK Overclocking, Case Mod, Tweaking PC Performance 2 12-19-2007 06:53 AM
Bad MB or CPU? fallow Hardware Troubleshooting 4 12-16-2007 06:49 PM
Does my MB have a lock on the CPU freq.??? rickytan Overclocking, Case Mod, Tweaking PC Performance 2 12-12-2007 01:16 AM