Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

cwGraph Annotation Example

Greets,
 
I'm working with VB6 and Measurement Studio 6.  I'm trying to place annotations on a CWGraph control.
What I would like to do, is place a vertical line on a Autoscaling graph each time a certain condition in code is met.  This vertical line will indicate the point in time, where the condition was met (ie, switching a solenoid).  Therefore, the vertical line should scroll with the graph as time passes .
I'd appreciate any tips or directions to where I could look at some example code.
 
Thanks,
 
Max
0 Kudos
Message 1 of 4
(3,605 Views)

Hi MadMax,

First, let me point out that you may be get better answers from the community on a question like this if you post to the Measurement Studio forum for any UI related questions.  Any CWDAQ related questions are still better posed in this forum.

For this particular question, I threw together a quick example shows a great way to do this.  If you click on the create annotation button, it will create a vertical line at the X Value of 5.  You will then notice if you click add points multiple times that the line stays in the correct place throughout.  This should give you a good start on what you are trying to do, but if you have any questions at all, feel free to let me know.  Thanks and have a great day.

0 Kudos
Message 2 of 4
(3,592 Views)
Hi Adam,
 
Thanks very much!  Almost exactly what I need.  I'm just trying to figure out how to add multiple annotations to the same graph.  For instance, there will be several solenoid operations within the time frame of the experiment, so I'll need to add an unlimited number of vertical annotations to the graph.
Is this possible?
 
Thanks,
 
Chris
0 Kudos
Message 3 of 4
(3,586 Views)

Hi Chris,

Looks like you already got your question answered in another thread.  I apologize that I didn't generalize the example for multiple annotations, but I was going to tell you the same thing that Elton did.  Let us know if you have any other questions.  Thanks.

0 Kudos
Message 4 of 4
(3,568 Views)