取消
显示结果 
搜索替代 
您的意思是: 

XYGraph  X-axis scroll bar

已解决!
转到解答

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

0 项奖励
1 条消息(共 5 条)
4,197 次查看

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 项奖励
2 条消息(共 5 条)
4,196 次查看

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 项奖励
3 条消息(共 5 条)
4,190 次查看
解答
接受人 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 项奖励
4 条消息(共 5 条)
4,177 次查看

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

0 项奖励
5 条消息(共 5 条)
4,173 次查看