07-03-2010 08:29 AM
i hv created this XY graph , i hv inserted the text using plotimages.front property.
problem is that i have to insert text values do this one by one keeping old values ,
so take the prevoius image from the plotimages.front property
and usig it as picture draw new text
it takes lots of resources , i m lacking perfrmnc in my application
please hlp
thks in advance
07-03-2010 09:52 AM
Have you considered using annotations instead? There's an example that ships with LabVIEW to show you how to add annotations programmatically. Open the Example Finder (Help -> Find Examples) and search for "annotation".
07-05-2010 07:41 AM
i hv tried Annotations( lv 8.0), but they do'nt solve the Text orientation problem as i needed
Some guess of mine is that, as i add text to the picture it increases the draw size and every
addtion of text asks more power of my CPU
07-05-2010 07:50 AM
Hi manufacturer,
your keyboard seems to be broken - your messages miss a lot of vocals...
"so take the prevoius image from the plotimages.front property and usig it as picture draw new text"
As you didn't provide your VI I have to guess from your short description. Usually reading/writing from/to property nodes is a slow process in LabVIEW. And you seem to read the property each iteration. Why don't you keep that immage in a separate shift register and only write to the property node?
And please attach a VI whenever it comes to performance questions...
07-06-2010 09:06 AM
Sorry for all my mistakes
i have tried it in other ways also, as i have attached the logic ,
please take a look at it
i think it is the picture , as i add a new text to it , processor consumption to that labbview application increases 1 or 2 % every time
thanks for replying
07-06-2010 09:26 AM
07-09-2010 05:53 AM
I apologies for the missing subvi and late response
This time I hv attached 2 VIs and 1 subvi , as my attempt to describe the problem
Both VIs telling their stories within them please take a look
Thanks again for replying
07-09-2010 06:55 AM
Hi manufacturer,
as you already have seen in the RTText.vi the picture datatype is not carrying the picture data, but uses commands to describe the picture. You keep on adding new commands whenever you write a new text. Each time the picture is redrawn LabVIEW has to re-parse that command list to rebuilt the picture. That takes time...
You could:
- decrease the number of times the picture is redrawn.
- try to avoid unneccessary property node accesses (like bounds of graph, they probably dont change while runtime)
07-09-2010 07:17 AM
hi Senior ( GerdW )
as i hv pasted 2 vis
the chk graph2.vi is not using property node repetedly accept once, it is only displyaing the constant values of graph
still it causing the consumption, where am i lacking the logic
thanks
07-09-2010 07:25 AM