LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to sync two graphs' X scroll.

I have an XY Graph plotting lines over an Intensity Graph. If my program runs for long enough I need to be able to X scroll the intensity graph and have the XY graph scroll accordingly so that the two graphs remain in sync. I thought that outputing the x.min and x.max properties from the intensity property node would do it, but the x.min and x.max do not change with scrolling 😞

All help is appreciated.
0 Kudos
Message 1 of 5
(3,256 Views)
The property node approach should work. Try using the "XScale.Minimum" and "XScale.Maximum" properties. (X Scale -> Range -> Minimum) Remember to set your active xscale first if, by chance, you're using more than one xscale.
0 Kudos
Message 2 of 5
(3,256 Views)
I looked through the help section in labview but could not find uselful information on setting the active xscale. My haphazard guesses on how to use it have been fruitless. Could you please give me an example.

Thanks
0 Kudos
Message 3 of 5
(3,256 Views)
Stephan,

Attached below is a small example of how to accomplish this. All it does is monitor the first graphs scrollbar and sets the second's to the same location.

The active X scale property is a zero based index that is used when working with multiple scales. With only one scale, we want to set it to 0 before we try to read or write to a property.

Regards,

Matt F
0 Kudos
Message 4 of 5
(3,256 Views)
Thanks, that is exactly what I needed.
0 Kudos
Message 5 of 5
(3,256 Views)