LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Annotate a graph dynamically

Hi all,


I am using the waveform graph - X axis as relative time in my application. I am trying to annotate the graph dynamically as and when each test is over. (It comprises about 10 tests). I like to have my annotation shown in the graph1 - ONE.
But I get it like in graph2 - TWO.

 

Attached vi in LV8.6

 

Hope somebody helps.

 

Thanks

 

Kousy

0 Kudos
Message 1 of 5
(2,899 Views)
Could you post your vi in lV8.5? or a snapshot of your graphs?
0 Kudos
Message 2 of 5
(2,897 Views)
Attaching the vis after removing subvis...
0 Kudos
Message 3 of 5
(2,887 Views)

Hi Kousy,

 

First, I would prefer you to rethink on design of your code.

1. Build array function used in a shift register which will cause drastic memory leak.

2. Local variables are used unnecessarily, which could have prevented by having an event structure with a producer-consumer architecture.

3. Clean up your block diagram. It is impossible to understand the code at first glance.  

 

Now coming to the problem, This is issue is due to the relative time AND offset and multiplier setting of the graph. This link has already discussed about annotation label offset being misplaced. It could be helpful for you, 

Message 4 of 5
(2,861 Views)

Hi Vsh,

 

Thanks for your support. Sorry for the delayed reply as I was not in office and busy with someother thing.

 

Mistakenly when I opened the vi in Lv2009, I did not find any problem. After that only i thought it could be a bug lv8.6 ver

The thread you attached also confirmed the same.

 

Come to suggestions, I do not know anyhting else How should I show graph using dynamic data other than building an array. How can I avoid memory leaking? Also I dont have much idea about producer-consumer architecture. Need to learn. Yeah, BD clean-up I would do better.

 

Thanks once again.

 

 

Kousy

0 Kudos
Message 5 of 5
(2,799 Views)