ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

X scroll bar position

Solved!
Go to solution

Hi All,

 

Is there any way to programmatically set the position of the X axis on an X,Y graph?  After I have loaded data into the XY graph I want the graph to scroll from left to right at a set speed showing the data from start to end. 

 

For example if I have data that spans along the X axis from 1-50 can I programmatically set 5 to be in the centre of the screen which then shows me data between 0-10 based on a fixed X axis scale of 1-10 (already set)?  For the sake of clarity if I then set the program to centre point 20 (as opposed to 5) it then shows me data between 15 and 25. 

 

In this way using a timing loop I could make it look like my XY graph is moving or jumping to relavent sections.  It could also be driven via an external source souce as a remote control with numbers.

 

Thanks for any help.

 

Wes

        

0 Kudos
Message 1 of 4
(3,601 Views)
Solution
Accepted by topic author Wes_3DO

You create a property node for the graph and select the X Scale>>Range>>Maximum and Minimum properties and then you update them according to your logic. Be sure to also right click the scale and disable autoscaling first.


___________________
Try to take over the world!
Message 2 of 4
(3,582 Views)

Yep, that's the solution.  Thanks alot for another fix, works perfectly.

 

Do you have any idea if I can superimpose a picture or image onto an XY graph to show a graphic (just in the plot area, not moving with the data)?  Until now I've been moving an annotation along the graph data but now that I can move the graph programmatically I can reverse the concept. I.e. move the graph under a stationary object (a superimposed picture/graphic in this case).  I think I've heard of people doing this but can't remember how.

 

Cheers,

 

 

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

The graph has properties which allow you to set foreground and background images. I never used them, so I can't comment on exactly how they work.


___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(3,567 Views)