LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pict Ring Repeat Rate Modification

I have created a Pict Ring with some pictures (see sample attached).

The default rate at which the pictures change 'feels slow'. If one releases the mouse button and clicks quickly the picture change almost instantly. Experience with animated controls also indicates that the control will change quickly.

Is it possible to modify the default repeat rate setting of the increment decrement buttons on the Pict Ring control?

I thought that the repeat rate should be a property of the control but I do not appear to be able to locate anything suitable.

I could use seperate buttons to change the control but this is less desireable.
0 Kudos
Message 1 of 5
(3,057 Views)
I think the problem is you loop is running as fast as it can and using all of your CPU time. Try adding a small delay(10ms). It should respond better.
0 Kudos
Message 2 of 5
(3,057 Views)
Besides adding the delay in the while loop, hold down the shift key while clicking the increment or decrement buttons. This accelerator mode works quite well with numeric controls but for some reason, with the pict ring, I see an an intial acceleration and then the control stops incrementing/decrementing. I also assigned key focus to the control and used the up and down arrows with very rapid changes.
Message 3 of 5
(3,057 Views)
That's the top tip needed, thanks the Shift key works great. (The original had a delay which does keep CPU low, sorry I missed it for the demo code).

How did you come accross that little gem ?

P.S. Note the stars (they seem much appreciated, and valued)
0 Kudos
Message 4 of 5
(3,057 Views)
Thanks for the stars. I don't remember when I learned about the shift key or where I learned it. Glad it helped.
0 Kudos
Message 5 of 5
(3,057 Views)