LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Buffering event structure data for front panel drawing

Hi!
I have an event structure, which gets user events, triggered from an external dll, then it processes the incoming data.
I draw this data on the front panel, but i think that the visualization takes too much time, and slows down the processing.
I would like to do the drawing not so often, for ex. in every 100 ms. So i must buffer the incoming data, as it all must be visualized.
How should i solve this buffering? I tried SmartBuffer, but Im not sure if it is the best way.
Thanks:
waszil
0 Kudos
Message 1 of 5
(3,030 Views)
You could try using the Defer Panel Updates Property. This doesn't affect the actual data processing it jsut stops/starts the front panel being updated. Depending on how you have things configured a front panel object can update as soon as it recieves new data and as you say it is this updateing that takes time and processor power. So If you defer the panel updates you can avoid this.




Change constant to False to start updating the front panel again.


Message Edited by DavidU on 07-07-2008 10:34 AM

Message Edited by DavidU on 07-07-2008 10:34 AM
Message 2 of 5
(3,005 Views)
But i need to draw every data, becouse i get a realtime signal. I just dont want to draw always, when a new data comes, just forex 100 ms often. I think, that what you advised, is not what i need. I need a buffering method, which can store my incoming data until my next front panel drawing, where i draw the buffer-size datas.
0 Kudos
Message 3 of 5
(2,997 Views)
Waszil,

from what you described here, it is exactly what you need. Defer Panel Updates.
"When you set this property to TRUE, LabVIEW redraws any front panel objects with pending changes then defers all new requests for front panel updates." is quoted from the help. This means: if you set this property, you have your buffer already implemented in LV.

Norbert

[Edit] Of course you have to toggle the deferal in your execution since you want to repeat "the buffering"


Message Edited by Norbert B on 07-07-2008 06:25 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 5
(2,995 Views)
All right then, I guess i didnt understand it the first time. Ill try it, thanks.
0 Kudos
Message 5 of 5
(2,991 Views)