08-02-2005 03:44 PM
08-03-2005 11:13 AM
Hi Polina,
It appears that the processor is somehow switching between User Interface activity and the block diagram. If you go to File >> VI Properties >> Execution, what execution system do you see selected ? Also what version of LabVIEW and what Operating System are you working with? Finally, here is a document discussing multi-threading that might shed some light on the issue:
Hope this helps.
Ankita
08-04-2005 09:42 AM
under execution: the priority is set to "normal priority" and the preferred execution system is set to "same as caller"
My labview version is 7.0 running on windows 2000. I don't think it's switching between user activity and the block diagram, because everything on the block diagram continues to run normally during the lag/freezing of the front panel. The program itself continues to run smoothly, and if i setup probes for any of the values within the program, they update regularly. The ONLY thing that seems to be affected is the front panel display. The problem only started when I added a bunch of graphical indicators to the front panel (gauges, meters, thermometers, etc). Do you think it could be putting too much stress on my video card memory?
08-05-2005 02:50 PM
Hi Polina,
Since you have already tried disabling smooth updates and have also played with hardware acceleration, the only other thing I can think of is to make sure you have the latest video card driver.
LabVIEW has to redraw the front panel when any front panel user activity is detected. You can try choosing the synchronous display option for your control/indicator. Beware that this will make the block diagram wait for the front panel control/indicator to update so it will make your program slower.
Ankita
08-09-2005 10:22 AM
I have updated my video card driver, but the problem remains. I figured out that if i have a wait function in my program for 500ms, the lagging goes away. However, if I drop this wait function to any shorter delay, the problem comes back. For now, I will just keep the wait function at 500ms unless someone thinks of something else I can try.
I have not tried enabling synchronized displaying because of the amount of objects I would have to enable it for. Right-clicking -> advanced -> synchonous display for each of over 100 front-panel indicators and controls seems tedious. Is there any way I can select everything at once and change the option?
08-10-2005 05:02 PM