06-06-2012 11:03 AM
Hi,
is it possible to highlight 1 or 2 points in a strip chart (that already has data in it) after the program has finished to write to it.
Lets say I would like to put a cross or a red dot to position x,y ; x being time=5 seconds, and y = whatever value I have on the Y scale.
Thank you.
06-06-2012 11:24 AM
I posted some examples using anotations in this thread.
Both this
And this
are shown in that thread.
Ben
06-06-2012 02:06 PM
Thank you.
That seems to work fine for a graph, but I'm using a strip chart because of the autoscaling features.
06-06-2012 02:17 PM
@MikeD wrote:
Thank you.
That seems to work fine for a graph, but I'm using a strip chart because of the autoscaling features.
In your original post you wrote "after the program has finished to write to it.".
So copy the data from the chart to a graph and use the techniques described in the previously linked thread.
Alternatively you could maintain your history in a shift register and just use a graph all the way through.
To the best of my knowlege the functions for annotating a display are only available for graph type objects without resortting to developing your own code based on a LV Pciture control where you have to implmeent the scaling, buffering etc.
It's your choice. I am only trying to help.
Ben
06-06-2012 02:18 PM
06-06-2012 04:24 PM
Thank you Ben and GerdW.
I appreciate your help. I did more testing, and I modified my program to use a Waveform Graph instead of chart. It does have the autoscale option, so that works.
For the annotation, I have strange behaviors.
Just for test, I created a graph with an annotation, and sent the annotation data to a cluster display. I can see my X-Y position changing while I drag the annotation.
If I keep that cluster as a base to build a new cluster and only change the X-Y position using a control on the FP and write to a new graph, the position of the annotation is not correct. It may stay at 0,0 or be close to the location I want, but not on it. I do have a multiplier of 0.25 on the X scale if that makes a difference?
All the rest of the cluster is the same as what I was reading from my previous test. Index needs to be 14 (default was 0), I don't know what that index is for though.
I will continu to work on it tomorrow.
Thanks again.