LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Annotating a graph

Solved!
Go to solution

I am trying to recreate the example

 

C:\Program Files (x86)\National Instruments\LabVIEW 2012\examples\general\graphs\Programmatically Annotate a Graph.vi

 

At least the annotation part, but the annotation does not show up on my graph.

 

Is there something in this example (like many) that is hidden or not explained in the example?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 1 of 4
(2,954 Views)

Here is the example I am trying to recreate.

 

Maybe someone can explain how it works?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 4
(2,916 Views)
Solution
Accepted by topic author RTSLVU

Okay so I figured it out myself...

 

Annotations must be first manually created and saved.

 

I could not find and property or method to create, add, or remove an annotation automatically.

 

<RANT>

Why this important detail is not explained in the LV shipping example is beyond me.

 

This is one of the most infuriating things about the shipping examples. They often leave out important details or use some "magic vi" to make things appear like they want, but these "magic vi"s are poorly documented and not easily reused in a real world instance.

 

This gennerally makes the  shipping examples worthless except to show that LV "can do that".

</RANT>

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 4
(2,900 Views)

Your problem stems from the use of Replace Array Subset.  If the initial Annotation List is empty then replacement fails.  You can build the list up from scratch if you like.

0 Kudos
Message 4 of 4
(2,888 Views)