Hello
Here is an idea you could try. Disable the "auto scaling " option in the graph control on your UIR file. And since you would know the lenght of your data array, you can use the
SetAxisScalingMode function to do manual scaling. Because the way autoscaling works is that if that that option enabled, everytime you plot anything new on the graph, it would autoscale the graph. Setting the scaling mode to manual lets you use the auto-zooming and panning, and would let you re-plot the data without the autoscaling kicking in.
The
+ actually returns the graph to the previous state it was in. For example, if you plot the data, zoom in, and then pan to another location, after pressing the key sequence, it would go to the zoom, not the original plot
If you want to get back to the same state the graph was, you could use getctrlattribute to obtain and save the values of the x and y axis before the zooming and panning happened, and then reset the graph with a reset callback, which would essentially assign the x and y axis with its original values. You can assign a shortcut key to the reset button under its edit options on the UIR.
I hope this helps
Bilal Durrani
National Instruments
Bilal Durrani
NI