08-03-2017 10:05 PM
I use XYGraph to display the waveform.How does the X-axis roll change as the X value changes?
Solved! Go to Solution.
08-03-2017 10:10 PM
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.
08-03-2017 10:19 PM
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 .
08-03-2017 10:33 PM
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.
08-03-2017 10:38 PM
Thank you very much. I will try and be careful.