LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Monitoring CPU usage executable ActiveX server

I am using the "monitoring CPU usage" VI which is described on http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E5D356A4E034080020E74861. It runs perfect on the development PC, but compiled to an executable and copied to the target machine, the graph grid runs, but there is no plot in it and an error message -2147467259 comes up. What´s wrong? - The *.ocx was registered, the dll copied and the check box for enabling the activeX server was on (application builder). But I don´t know, what do I have to insert for the servername...? Standard input is "application". Is this correct? How can I find out the servername used by this perfmon application?
0 Kudos
Message 1 of 9
(3,813 Views)

Hi Matthias,

I think the application is the activeX client and so you don`t have to enable the activeX server. But I don`t think this is the problem. Are you using the same operating system on your development PC and your target machine?

Best regards

Volker

0 Kudos
Message 2 of 9
(3,766 Views)
Hi Volker,
 
thanks yor your fast reply. Really no need to activate the activeX server? However, I am using the same OS on both systems, it´s WinXPprof and LV 7.1. The only difference is the language. The development PC has english Windows, the target machine is installed in german...Some idea? Thanks again...
 
Matthias
 
 
0 Kudos
Message 3 of 9
(3,762 Views)

Hi Matthias

Since languaje is different,  perhaps you are having problems whit decimal separator. It happened to me time ago.

So try to tell in application ini what decimal separator  the app should use.

Hope it helps

Alipio

---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 4 of 9
(3,752 Views)
Hello Alipio,
 
thanks for your support. Since now, I could not solve the problem, but find out something more: Because you mentioned the language incompatibilites, I tried to run the perfmon application on other PCs. Result: It runs only on english-windows versions, not on german´s 😞
It´s independent of development environment or just a runtime. - So I think, it´s true what Volker said, not the activeX servername causes that trouble. I confirmed it on 2 english- and 3 german windows. But now, I really don´t know what to do...
 
Matthias
 
 
0 Kudos
Message 5 of 9
(3,742 Views)

Hi again.

I tried perfmon  in spanish, and it displays only moving grid even in development enviroment.

Probably is a bug in ocx control.

For monitorin CPU usage, I am using the labview example "simpletaskmonitor.vi". You need dotNET, but you can download it from microsot site.

Hope it helps

Alipio

---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
Message 6 of 9
(3,723 Views)

Hi Alipio,

this is good to know that you have same problems in spanish version. I will send an email to "etree" and inform them. - I checked the "simpletaskmonitor.vi", it looks good and gives the inforamtion I wanted to have. You really helped me, thank you!

Matthias
 
 
0 Kudos
Message 7 of 9
(3,711 Views)
Hi Matthias
Please, check the microsoft site for PDH.dll info. I made a quick check and it seems that dll uses some languaje dependent properties. I have no too much time to study the problem, bat most probably is a microsoft problem,.
Anyway, maybe etree can solve it calling the dll in a languaje independent way
Cheers
Alipio

---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 8 of 9
(3,703 Views)
Hi Alipio,
 
I checked the internet and could find many informations regarding PDH.dll. Too check all in detail needs awhile, but unfortunately our time here at work is limited as well. However, I first will wait for an answer from etree and then - if necessary continue checking the net about the dll. Thank again and best regards,
 
Matthias
 
 
0 Kudos
Message 9 of 9
(3,690 Views)