LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add updating control of graph axis scale

I have a graph for which I would like to update the x-axis scale both with a pair of controls (which designates the start and end of the axis) or by using the built in scale functions. The problem is that I need to update the scale in the controls is the scale is changed using the scale functions. I have tried reading the XScale.Maximum and XScale.Minimum values, but these do not appear to update. Does anybody know how to obtain this information?
0 Kudos
Message 1 of 5
(2,869 Views)
You're using the correct properties. Do you read them in a loop? Is the graph indicator in the same loop? How are you handling the logic to accomodate either a change from the numeric control or on the graph itself? Attaching a copy of a VI that demonstrates the problem you're having would help.
Message 2 of 5
(2,869 Views)
I scaled down the program and made a sample which only inlcudes the part of interest. In this setup I have the controls writing the the graph property node in a loop and then I read the graph properties from another graph property node and write it to the controls property node in the same loop. The property nodes are tied together by an error cluster to force the flow of data to execute properly.
0 Kudos
Message 3 of 5
(2,869 Views)
I am not sure exactly what you are wanting to do. It is my guess that you want to programatically set the range of the graph to have the range specified in the controls on the left.

When I tried to change the indicies of the graph, the front panel of the VI was unresponsive. I suspect the problem is that you are setting the value of the range then writing to the control that was just setting the value. This is going to be next to impossible without the event structure. Also LabVIEW 7 has a time stamp control that is better than your numeric behind the string control.
0 Kudos
Message 4 of 5
(2,869 Views)
Thanks for the help. I have rewritten the vi using an event structure and this appears to work.
0 Kudos
Message 5 of 5
(2,869 Views)