LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows 98 Processor Usage

Hello,

I have found that any LabVIEW program (I am developing in LV 7.0 on a WIn200 machine) I write has a very bizarre effect when it is run on a PII Win98 Machine. I'll take you through the sequence of events.
I'll restart the computer and then display the processor usage monitor. I'll then run a LabVIEW developed program. The Processor usage is now around 8%. I'll close out of the program. Now my processor usage jumps up to about 65% and stays there forever more. If I run anything else, the processor usage accumulates. However, if I run another LV exe, the usage percent will drop down to the typical 8% or so.
I believe I am closing my application out just fine. I even tried the "Close LV" vi and it had no different effect.
Does
anyone have a possible reason for this or solution?

Glen D.
0 Kudos
Message 1 of 16
(3,565 Views)
Hm, this is strange behavior indeed! Have you tested this out on any other Win98 machines to verify that it is a Win98-related issue?

Also, are you communicating to any hardware in your executable (i.e, using NI-DAQ or VISA). In particular, if you are using VISA, there is a 'SyncVisa' environment setting for LabVIEW executables that needs to be set in the .ini file. Refer to this KB for more information: KB 1O3650DM: My LabVIEW 5.0.1 Executable Uses 100% of the Processor When Using VISA.

If you are making any Traditional DAQ calls, then a CPU usage of 100% is expected. Refer to the following KB for more information: KB 2ZK7NQB9: NI-DAQmx CPU Usage at 100%

Hope this helps. Good luck!

Kileen C.
0 Kudos
Message 2 of 16
(3,565 Views)
I have found that this happens with any Labview developed program. I tested with a simple program which just was a while loop with a 1 sec delay and a stop button. The problem still occured. But something interesting did happen. I did not include a "Close FP" in the simple program. So, when I hit the stop button, the program stopped running, but the window did not close. It was only when I closed the window (by X button or by file menu) that the processor usage jumped up to about 65%. Could this be a problem with the 7.0 RTE running on Win98?

And yes, I have tested it on two 98 machine. The processor swelled on both of them. One was a P2, other was a P3.
0 Kudos
Message 3 of 16
(3,565 Views)
Hi AstoMed,

I observed this same behaviour!

It happened on LV 6.1 nad LV 7.0.

I also noticed that if I killed LV (ctrl-alt-del...), this remnent of cpu usage will not appear.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 16
(3,565 Views)
I just build the same simple program in LV 6.1 and ran it on a win98 machine. Again, when the window was closed the processor usage jumped up to about 65% or so.
0 Kudos
Message 5 of 16
(3,565 Views)
Ben,

I did not observe that. Are you running an exe or a VI in development? I am running EXEs. If I ctrl-alt-del the EXE I still get the processor swell.

Weird stuff...
Glen
0 Kudos
Message 6 of 16
(3,565 Views)
My reported observations applied to the development environment.

I can no longer test that "feature". That machine has been retired.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 16
(3,565 Views)
Since this is the first reported instance of this happening, do you think you could post your code and I could try and reproduce the issue? We have not noticed this behavior here before and having both the VI and the exe that demonstrates this behavior would be useful.

Thanks again!

Kileen C.
NI
0 Kudos
Message 8 of 16
(3,565 Views)
Kileen

Sure, I can post some code, but it consistantly happens with any LV code I write and run on a 98 machine. Actually, anytime I close out LV or a LV exe on a 98 machine it leaves my processor at about 70% usage. I am using sysmon.exe (included in win98) to monitor my processor. I would be intested to know if you have seen similar results or not so that we could compare notes.

Glen D
0 Kudos
Message 9 of 16
(3,565 Views)
I have filed this as a bug report for R&D to investigate as the Window98 machine previously available is no longer working. I will update this post with any further updates.

Thanks!

Kileen C.
NI
0 Kudos
Message 10 of 16
(3,565 Views)