Jump to content

Programmically Add Annotations to Waveform Graph


Recommended Posts

ZITAT(abuch06 @ Aug 3 2007, 04:16 PM)

I know that you can add annotations to a waveform graph by right clicking then selecting "add annotation". Right now I have my program identify annotations and place them where I want, but I cannot seem to create them inside the VI.

Is this possible?

This sounds as if you were already reading and writing the property "Annotation List" to change the placement of your annotations. If I am right, you are already almost there :thumbup:

Just use the graph's property "Annotation List" to get the current list of annotations.

You can simply add more elements to this array and write the complete array back to the same property.

Just to make myself clear: you always have to write the complete list of annotations to the property. As far as I know there is now simple way to add only one annotation without first reading all the existing ones.

Link to comment

Yea I understand everything that you said... the only problem is that my program can only fix annotations that already exsist. If i click on the graph and "add annotation", then run the program, it works fine. But sometimes I need to add 5, or 10, or 20. It depends on the data I send it. I want the program to read in a number of annotations to create, then create them on its own.

I know how to read in the "Annotation List" property and set all of the things available: Name, lable visible, plot # and so on. the program does that fine.

AH i just got it... thanks for the help!!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.