Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

CNiSlide Performance Issue : High Processor Load

Hi,

I have a big performance Problem with CNiSlide Ctrl's used with Measurement Studio 6 in C++ :

As you can see in the attached Example I created 16 sliders and I Update each slider 10 times in a second with a random value.

On A PIII with 800 MHz under XP I get a processor load of 50 percent and that is a great deal to much ( because my app should have time to do other things)

Is there any way to reduce the process load or is it by design ?
I noticed the load is reduced if I dont use filled bars, just pointers, but I need to use this feature.

I would appreciate any help !
Jörg
0 Kudos
Message 1 of 3
(3,116 Views)
Try setting the ImmediateUpdates property on all of the controls to false. Your refresh rate should still be pretty fast and this cut the CPU load in half when I tested it.

- Elton
0 Kudos
Message 2 of 3
(3,116 Views)
Hi Elton,

thank you for your answer, you are right, I can reduce the processor load by setting ImmediateUpdates to false.

But unfortunately my sample programm reflects only a subset of the real life application that has more pointers and color bars per control. In addition it has to run on 300 Mhz pentium II class computers.

Do you have any information why the controls use so much processor time. Is it because they are ActiveX Controls or is it connected to the C++ wrapper classes around them ?

Do you have any other suggestions, for example are the Measurement Studio 7 Slider Controls less hungry in processor time?

Thanks, Jörg
0 Kudos
Message 3 of 3
(3,116 Views)