LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I trigger an event when annotations are edited in a waveform graph?


I've figured out how to programatically edit graph annotation properties, and "Shortcut Menu Selection (App) is triggered when I create an annotation.


However, I also need to have an event case triggered by the user editing annotations (ex: deleting one or changing its color).


Dustin Soodak
0 Kudos
Message 1 of 6
(3,145 Views)

Hi Dustin,

 

Do you mean you want an event triggered when a user changes a graph annotation?

 

Ipshita C.

National Instruments
Applications Engineer
0 Kudos
Message 2 of 6
(3,133 Views)

Did you figure this out?  I have the same question.  Annotations have their own separate shortcut menu and in my application I need to be able handle the events for the annotations separately from the events for the rest of the graph.  I don't want the user to be able to change an annotation from snap to free or to be able to make other formatting changes.  Also, I want an event when the user deletes an annotation using the shortcut menu.  In other words, I need the annotations to have their own shortcut menu events.  Is there a way to do that?

 

Travis

0 Kudos
Message 3 of 6
(3,063 Views)

Same problem here... A event for user interaction with annotations would be very helpful. In my case, the annotations should be saved in a preference file.

0 Kudos
Message 4 of 6
(2,841 Views)

Hi,

 

I am not sure if I completely understand what you would like to do, but have you considered using property nodes?  There is a property node specifically for Annotations, called Annotations List.  You can find it by creating a property node from the Waveform Graph. 

 

Also, here is an example that may be helpful for you. The example from the Example Finder can be found if you simply search Annotation. If this is not along the lines of what you wanted, could you please explain more about your application?

 

I hope this helps!

 

Kim W.

Applications Engineer
National Instruments
0 Kudos
Message 5 of 6
(2,830 Views)

Hi

 

Thanks you for your answer, sorry for the late reply.

 

The annotations are created by property notes. However, the user can move them around and change them (which is intended) by the standard way (mouse, right click). The annotation notes are stored in a file using the property "AnntList" in retrieved from this file later  during data browsing. Currently, we compare the old AnnotList with the new one to decide if a safe operation is needed. All the changes are synchronized with a database and we want to trigger these synchronization events only, if it is really needed.

 

In summery: Not a big deal, but nevertheless there is a feeling that something is missing...

 

Bruno

 

0 Kudos
Message 6 of 6
(2,817 Views)