LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xy graph text

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

0 Kudos
Message 1 of 13
(4,510 Views)

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".

0 Kudos
Message 2 of 13
(4,487 Views)

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

0 Kudos
Message 3 of 13
(4,461 Views)

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 13
(4,453 Views)

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

0 Kudos
Message 5 of 13
(4,433 Views)

Hi manufacturer,

 

your attachment is missing a subVI (RTText.vi)...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 13
(4,428 Views)

I apologies for the missing subvi and late response Smiley Sad

 

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

Download All
0 Kudos
Message 7 of 13
(4,389 Views)

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)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 13
(4,378 Views)

hi Senior (  )

 

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 

0 Kudos
Message 9 of 13
(4,374 Views)

Hi manufacturer,

 

"chk graph2" runs on my laptop with <2% CPU, Core2Duo 1.6GHz...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 13
(4,371 Views)