LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to defer panel updates on the PDA?

Dear comunity members,
 
I have performance problems with my PDA application.
Mainly while LEDs are blinking, properties change, tab
indicators change and string changes.
At this very moment I stil use the 8.0.1 PDA toolkit because
I cant get the 8.2 running on my target but this is another
story.
I would like to defer panel updates while changing proberties and
other things. Is this possible with the PDA toolkit?
 
 
With kind regards

Martin Kunze

KDI Digital Instrumentation.com
e-mail: martin.kunze@digital-instrumentation.com
Tel: +49 (0)441 9490852
0 Kudos
Message 1 of 6
(6,125 Views)

Dear Martin

If I get you right you want to programmatically trigger screen updates. I don't think this is possible, it's controlled by the OS.

Best regards

Philipp Roessler

 

Message 2 of 6
(6,096 Views)

Dear Phillip,

in LV it is possible since LV 6, I think.
With the PDA toolkit I havn't found something
like this.

Btw. in LV is still a bug inside of this function
because if you set defer panel updates to TRUE
the window will be redrawed once.
Now you are allowed to cange all the values of
all components without a panel redraw. When
you set defer panel updates to FALSE all changes
will take effect at once.
This parameter is often used to enhance tree and table
updates.

With kind regards

Martin Kunze

KDI Digital Instrumentation.com
e-mail: martin.kunze@digital-instrumentation.com
Tel: +49 (0)441 9490852
0 Kudos
Message 3 of 6
(6,097 Views)

Dear Martin

You are right about the 'Defer Panel Updates' property in LabVIEW; it is not
available for PDA targets, though.

I don't think there's a bug in the function: the behaviour you describe is
exactly the one documented in the LabVIEW help.

Best regards

Philipp Roessler

 

Message 4 of 6
(6,084 Views)

Dear Philipp

You are right the function does what it should do but where is the sense?
You defer the panel updates to inc. speed. OK
Why is it nessesary to make a redraw before the panel is froozen?
When we talk about performance we talk about embedded conputers too.
They are mostly passive cooled and they have less performant CPUs.
If you do a panel redraw without the need you loose performance again.
From my point of view it doesn't make sense and it is a bug even when the
maual descibes the function as is.

 

With kind regards

Martin Kunze

KDI Digital Instrumentation.com
e-mail: martin.kunze@digital-instrumentation.com
Tel: +49 (0)441 9490852
0 Kudos
Message 5 of 6
(6,075 Views)
You need to redraw once because there might be indicators which have received new values BEFORE the "defer front panel" option is set, but have not yet actually been updated on the screen.

In order to prevent these normally scheduled updates being wrongly excluded by the "defer panel updates" function, they're drawn once the option is called.

The screen updates are asynchronous to setting the values of the respective terminals....

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Message 6 of 6
(6,069 Views)