LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Xcontrol Freez display

I'm using Xcontrol in my application.  They are updated at a rate of 20 ms from data coming from an other system.  In this application many controls are dynamically registered to send value to the other system.  If I leave the control unchanged, no value change generated, there is no problem.  But when I change these control value, aggressively, the display freeze.  The owl LabVIEW environment is feezed, there is nothing I can do anymore.  Then surprisingly if I click any where else, such as in the task manager, an explorer window or in the wallpaper the LabVIEW interface come back to life.

Any ideas?

Nitrof

0 Kudos
Message 1 of 2
(2,473 Views)
20 ms (or 50 Hz) is probably a bit fast for updating anythiny other than the simplest XControls (string or numeric). Charts will be CPU intensive. I'm now only working on LV 7.x (8.x not available) so I can't give you an example or look at your code Smiley Sad

Try collecting small groups of the data in an array, deferring panel updates, write the array values to the XControl / turn off defer panel updates. try to keep your front panel updates to 10 -20 Hz (100 -50 ms intervals). You won't be able to perceive much over 30 Hz.


Message Edited by Phillip Brooks on 07-09-2008 01:56 PM
Message 2 of 2
(2,456 Views)