| Author |
Message |
Marc
Joined: 26 Nov 2006 Posts: 36
|
|
|
|
Okay, so now i have:
Public Declare Function NvGetData Lib "nvcpl.dll" ( _
ByVal datatype As Integer, ByRef pdwValue As Integer) As Long
system = NvGetData(7, pdwValue)
ds.SetValue("NvControl.nrofgpu", pdwValue)
Still no luck 
|
|
| Sat May 05, 2007 4:51 pm |
|
 |
Ray
Site Admin

Joined: 23 Apr 2005 Posts: 3333
|
|
|
|
While messing with their C sample, turns out you need to call NvGetDisplayInfo before NvCplGetDataInt starts working.
|
|
| Sat May 05, 2007 6:19 pm |
|
 |
Marc
Joined: 26 Nov 2006 Posts: 36
|
|
|
|
Okay, didn't know that. I'll give it a try.
|
|
| Sat May 05, 2007 6:24 pm |
|
 |
gta1337
Joined: 07 May 2007 Posts: 1
|
|
|
|
Have you got it to work yet? Have been waiting a long time for SLi support. Post if you figure it out, would make alot of people happy!
I'm new here BTW 
|
|
| Mon May 07, 2007 1:31 am |
|
 |
Marc
Joined: 26 Nov 2006 Posts: 36
|
|
|
|
Hang on, still working on it.
Can you help me out again Ray, can't figure out how to call NvGetDisplayInfo .
Especially the part with the pszUserDisplay, is that an Array?
Sorry to bug you with this btw.
|
|
| Mon May 07, 2007 4:09 pm |
|
 |
Ray
Site Admin

Joined: 23 Apr 2005 Posts: 3333
|
|
|
|
 |
 |
Parameters In LPCSTR pszUserDisplay -- <device #> [NV device moniker]
See “Passing Device Monikers in pszUserDisplay” on page 100 as well as
“Device Moniker Version 2 String Format” on page 99.
|
See the docs that come with it or just look at their sample app and see what they use for that parameter, although you cannot write C you'l have a rather large chance of understanding what a piece of code is doing or trying to do by just looking at it.
|
|
| Mon May 07, 2007 4:27 pm |
|
 |
Marc
Joined: 26 Nov 2006 Posts: 36
|
|
|
|
Okay, so i think i understand half of it, it should be something like:
system = NvGetDisplayInfo("0", displayinfo)
Where "0" is the device number as string. But displayinfo consists of:
displayinfo.cbsize
displayinfo.dwInputFields1
displayonfo.dwInputFields2
So, can i make an array?
Public Declare Function NvGetDisplayInfo Lib "nvcpl.dll" ( _
ByVal displaynr As String, ByRef deviceinfo As Array)
dim displayinfo(0 to 2) as array
displayinfo(0) = 3
displayinfo(1) = 0x00000001
displayinfo(2) = 0x00000010
Does this make sense?
|
|
| Mon May 07, 2007 7:23 pm |
|
 |
Ray
Site Admin

Joined: 23 Apr 2005 Posts: 3333
|
|
|
|
It doesn't, you should really read up to doing structures and pinvokes i kinda getting the feeling i'm writing the plugin instead of you..
|
|
| Mon May 07, 2007 9:40 pm |
|
 |
Marc
Joined: 26 Nov 2006 Posts: 36
|
|
|
|
 |
 |
i kinda getting the feeling i'm writing the plugin instead of you |
Yeah sorry about that, but thats not my intention. It's just that this pinvoke stuff is a bit more difficult than i am used to do with vba. I think i'll be taking a course in the next couple of month's cause i really like to learn this.
 |
 |
structures |
Thanks, that really help me out (again).
|
|
| Tue May 08, 2007 5:59 pm |
|
 |
SupeRaven
Joined: 02 Jan 2006 Posts: 3
|
|
|
|
Um... the link don't work any more. Says it was removed because it was inactive for 30 days. Can someone repost it?
|
|
| Thu Jun 28, 2007 3:40 am |
|
 |
Marc
Joined: 26 Nov 2006 Posts: 36
|
|
|
|
Link updated.
|
|
| Thu Jun 28, 2007 6:37 am |
|
 |
Turist
Joined: 13 Jul 2007 Posts: 14
|
|
Re: Nvidia Control Panel plugin (download it here) |
|
Thanks a lot for this plugin, but i have some problems with it: ambient temp shows always zero. I live in Russia and it sometimes gets really cold here, but now its not the case GPU temp readings are correct.
I have Nvidia 8800GTS 640Mb
Thanks in advance
|
|
| Fri Jul 13, 2007 9:40 pm |
|
 |
Marc
Joined: 26 Nov 2006 Posts: 36
|
|
|
|
I'm not sure, bnut i think the driver you have doesn't support reading the ambient temp. Else it schould work. Tell me which driver you have and i'll have a look. Also you could try Everest.
|
|
| Sat Jul 14, 2007 7:58 am |
|
 |
Turist
Joined: 13 Jul 2007 Posts: 14
|
|
|
|
 |
 |
I'm not sure, bnut i think the driver you have doesn't support reading the ambient temp. Else it schould work. Tell me which driver you have and i'll have a look. Also you could try Everest. |
All other apps are reading temps correctly... i have 158.22 en whql driver installed.
i dont really like idea of having everest running in background but i`ll give it a try
Btw: i`m curious if anyone knows what does it means, when from time to time Lcd studio "loses" variables and there are either "Error" or "<variable name>" displayed on my G15 screen instead of data. I use perfcounters, speedfan, nvidia plugins. This never happens to speedfan values but with perfcounters almost everyday :\
Thanks
|
|
| Sat Jul 14, 2007 10:46 pm |
|
 |
Turist
Joined: 13 Jul 2007 Posts: 14
|
|
|
|
Everest itself does not show amb temp too. But RivaTuner does.
I can not load Everest plugin (nothing happens when i click checkbox for this plugin), but i think i will clear this in related topic
PS: may be my Lcd studio installation got corrupted? never had such problems before...
|
|
| Sat Jul 14, 2007 11:06 pm |
|
 |
|