LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change X and Y scales?

Hi,

 

The graph on my front panel is not letting me adjust the axis. I have gone to preferences, and tried putting in inputs of the desired values, but after I click ok it returns the previous values. I would like the axis to start at zero, and keep running with time, but that isn't what happens. The values stay the same as the waveform keeps progressing across the screen. Do you have any suggestions as to how to adjust the axis with starting values, and get it to stay that way? 

 

Thanks!

 

🙂 

0 Kudos
Message 1 of 28
(3,935 Views)

hi ,

      can u post the vi in labview 8.2 format....

------------------------------------------------------------------------------------------------------------------
Indrajit

| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .
Message 2 of 28
(3,922 Views)

The waveform even continues to save as I would like it to, as I have checked when I opened the measure file (as a text file).  The window continues to stay within the certain range. I would like to be able to set the parameters of the axis, and display certain parts. I have tried using the zoom in and zoom out functions on the graph, but the waveform remains within that window even when zoomed out. Any suggestions?

 

PS- How do I save the file as a LabVIEW 8.2?

 

0 Kudos
Message 3 of 28
(3,900 Views)

Well, you could press "autoscale axis" and it will scroll automatically to follow the graph. You could do that for the x-axis (time).

If you have your initial axis set from 0-30 seconds, the axis will continually follow the graph, but always have a domain of 30 seconds.

 

Is that what you were asking or did I misunderstand? 

Cory K
0 Kudos
Message 4 of 28
(3,897 Views)

I have tried to auto scale the graph, but it keeps returning to the same window frame size of (900m to 1), and this is a time axis. It doesn't matter if I change the axis as soon as I hit run the window frame returns to those numbers, and does not allow me to display any other part of the graph. Did this make it any more clear?

 

Below is a picture of the scaled x-axis that I am having difficulty with. 

 

 

0 Kudos
Message 5 of 28
(3,891 Views)

hi

go to File>>SAVE forprevious version >> labview 8.2 , after saving the vi....it will be in a folder named as the vi name.......

------------------------------------------------------------------------------------------------------------------
Indrajit

| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .
Message 6 of 28
(3,889 Views)

I guess if it is giving you a hard time changing the scale by hand,

why don't you try changing it programmatically?

 

- Right click on your graph 

- Create >> property node >> X Scale >> Range

- Make one minimum and one maximum

- change both properties to "write" instead of "read"

- Wire them to either constants, or controls on the front panel

 

Hows that? 

Cory K
0 Kudos
Message 7 of 28
(3,887 Views)

Actually, you said you wanted the graph to update with time.
So, you could leave the minimum wired to a constant, which is set to '0'.

 

Then, wire the current time to the maximum x scale property.

That way, the x scale will be exactly as long as it needs to show all the data.

 

I would do the following though.

If time < 10 seconds, xmax = 10seconds

if time > 10 seconds, xmax = current time

 

This will stop any problem from occuring at time 0, by having a scale of 0 length. 

Cory K
0 Kudos
Message 8 of 28
(3,881 Views)
Indrajit- here is the new file! Hopefully you can help!
0 Kudos
Message 9 of 28
(3,857 Views)
You are going to have to explain a little bit better (actually a lot better) what you are trying to do because your code does not make much sense to me right now. With each iteration, you are writing the same x range values over and over again so you are stopping the chart from showing new values.
Message 10 of 28
(3,853 Views)