LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to fix x scroll bar of a graph

I want to display a curve on a graph with the following conditions. How do I do it?
 
1 - fix the starting point for both x & y axis at 0.
2 - have an updating x axis, meaning it will show the lastest part of the curve.
3 - have a variable x & y axis with the range of minimum 0 to infinity.
4 - restrict the x scroll bar to move to any negative x value.
 
I tried to set point 1 & 3 and I thought I will achieve point 4 as well but it didnt. Could anyone please help me??
 
Thanks alot Smiley Wink
0 Kudos
Message 1 of 4
(3,401 Views)

Hi,

Look at this VI

Here i set the x axis scale minimum using a property inside loop with property node.

This will pervent x axis to going to negative x values while running.

Hope this helps

Regards

Dev

 

0 Kudos
Message 2 of 4
(3,394 Views)

What i want is to initialise the graph, meaning everytime i use the graph, it will show me the scale starting from (0,0). Each time i use the graph, there will be many inputs to the graphs. As the inputs to the graph increases (more and more (x,y) pairs are input to the graph), the graph will show me the lastest input (lastest (x,y) pair) plotted on the graph.

What i want is sometime like the table index value where it can allow me to so call scroll down automatically as more rows are rewritten onto the table. I want to have a similar property on the graph but I don't how to do it.

Could anyone pls help me??

0 Kudos
Message 3 of 4
(3,387 Views)
Hey tlp0605! 

I'm afraid I am having a little difficulty understanding what you are tying to accomplish with your VI.  Are you trying to add a scroll bar to an axis on a graph?  For both graphs and charts, there is an option to make a scrollbar visible (right click and select Visible Items » X Scrollbar).  Is this what you are trying to use?  Dev's post will certainly start the axis at zero everysingle time, which seems to be what at least one of the things you are trying to do.  If you are trying to add one point at a time to a graph, I might suggest using a chart instead.  These can be used inside while loops to continually update values on a graph.  If these suggests don't help, please repost with some additional information or maybe a VI. 

Hope this helps!
Andy F.
-----------------------------------------------------------------
National Instruments
Message 4 of 4
(3,370 Views)