LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XYGraph  X-axis scroll bar

Solved!
Go to solution

I use XYGraph to display the waveform.How does the X-axis roll change as the X value changes?

0 Kudos
Message 1 of 5
(3,515 Views)

I'm afraid I don't understand your question.  What does "x-axis roll change" mean?

 

I'm thinking this is the kind of question you'd be able to answer yourself by creating a simple VI and trying it out.

0 Kudos
Message 2 of 5
(3,514 Views)

Sorry, I can explain it to you.  

You know right click a XYGraph , you can choose X Scrollbar.  When I drawing, the X value and Y   value are increasing ,but the  X Scrollbar don't move , thus I can't see the latest data. I would like to know is there a way making X Scrollbar moving with X value.

I create VI on my computer ,but still don't know .

0 Kudos
Message 3 of 5
(3,508 Views)
Solution
Accepted by Tinafan

Okay.  That makes sense now.

 

I don't think there is a way you can set the position of the scrollbar programmatically.  What you can do is write to the Xscale.Range property for the graph.  It has things like Min and Max so you can set the X values that define the visible part of the graph.  The X scrollbar will then adjust as necessary to meet that.

 

Be careful about programmatically changing these things.  If you are constantly doing it, it will fight a user who might be trying to manually move the scrollbar to see other parts.  Nothing more annoying to the user then having a scrollbar you can move, but the program keeps moving it back.

0 Kudos
Message 4 of 5
(3,495 Views)

Thank you very much.  I will try and be careful.

0 Kudos
Message 5 of 5
(3,491 Views)