LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

following x-axis

Solved!
Go to solution
I don't know if I am saying this right, But i want the x-axis to float, meaning I want the plot to stay in the middle of the graph while it is collecting data, but i don't want it to auto scale and bunch everything up. any help would be nice
0 Kudos
Message 1 of 8
(3,135 Views)

Then you can uncheck the autoscaling feature. If that is what you meant

 

scale.JPG

0 Kudos
Message 2 of 8
(3,118 Views)
Do as muks suggested and then you can click in the minimum or maximum number of your x-scale and edit/change it manually accordingly.
0 Kudos
Message 3 of 8
(3,111 Views)
I have done this already, but what I am looking for is if there is a way I can set this up to stay current in time. This program is running for 45 min, but you only look at about 30-60 sec worth of data at a time and I need it to stay current in time without having to manually adjust. any ideas?
0 Kudos
Message 4 of 8
(3,083 Views)
Solution
Accepted by topic author jastel

I think i know what you are asking.

If for example now it stays for 60sec worth of data and you want to be able to fit 45mins then do that.

Right-click the graph on the front panel and select 'chart history length' the default value is 1024 make that 45x1024=46080 (in fact make it a bit bigger say 50000.

Then when you click the maximum x-axis point to edit it you should be able to enter 49999 which is enough number to fit your 45mins data.

Just a hint, if you know how often you aquire data (delay in your loop) you can go to graph Propeties--->Scales--->Time(X-Axis) and change your 'multiplier' so the x-axis is displayed in seconds instead of points aquired. So for example if you aquire at 10Hz (loop delay 100ms) if you change your multiplier to 0.1 the x-axis will be in seconds.

Then if you do it that way you need to change your maximum x-axis point from 50000 to 45minx60sec=2700.

Have a look at the example i made for you. If you don't have LV2009 let me know and i will downgrade it.

Try them one by one not all of them at the same time.

Hope that helps

0 Kudos
Message 5 of 8
(3,061 Views)
That is exactly what I am trying to do. but for some reason I don't have that chart history option.....when I right click on yours its there, but on mine its not. is there another place to find it
0 Kudos
Message 6 of 8
(3,040 Views)
You need to actually be using a chart (not a graph) to have the option.
0 Kudos
Message 7 of 8
(3,037 Views)

never mind, i recreated the graph and it was there, thank you

0 Kudos
Message 8 of 8
(3,028 Views)