LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Separate autoscale from scale legend?

I would like to customize the appearance of graph controls such as the graph palette and scale legend.  Specifically, I would like to separate the autoscale buttons from the rest of the scale legend, so the user can autoscale the graph without having the whole scale legend visible.  When I attempt to customize a graph in this way, I can't seem to separate the components of the scale legend, though the graph palette is easily separable.  Is there a way separate the autoscale buttons from the scale legend?
0 Kudos
Message 1 of 13
(5,109 Views)

Create a Property Node of the Graph indicator

 

Right-click the property node > Properties > X Scale > Scale Fit

 

You will get XScale.ScaleFit property of the graph

 

Set it to 1 (Autoscale Once)

 

Place it in a case (TRUE) which is executed by a boolean button (your separate Auto-Scale button)

 

Likewise for Y Scale.

Message Edited by ian fung on 11-11-2008 01:33 PM
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 13
(5,105 Views)

Ian,

 

Thanks a lot for the help.  

 

I was hoping there is a way to use the built-in autoscale control, since it works outside of the main program loop, for example even when the vi is not running, and doesn't require any additional code.  Is there no way to customize the scale legend in this way?

  

0 Kudos
Message 3 of 13
(5,070 Views)
The ability to edit these two fields is very limited. On the Graph Palette there is no ability to change it as you would like. On the Scale Legend you can shrink two of the buttons down to nothing, practically. The other button can get small and the string can also get fairly small but you cannot remove them. You cannot change their order either. That is the extent of the editing that you will be able to do when you customise a graph.
Vince M
Applications Engineer
0 Kudos
Message 4 of 13
(5,054 Views)

Vince,

 

I suspected that was the answer since what you described was the best I was able to do when customizing the graph control.  I was hoping some trick existed that I hadn't discovered yet.  Oh well.  I will follow Ian's advice, and that will be good enough.

 

Thanks,

Eric

0 Kudos
Message 5 of 13
(5,051 Views)

Hi,

 

I saw that you were going to use Ian's advice to help you with you issue. Just wanted to remind you to select his post as the "accepted solution".

Regards,
Claire Reid
National Instruments
0 Kudos
Message 6 of 13
(5,034 Views)

Claire,

 

While I appreciate Ian's suggestion, I feel it is more of a work-around rather than a solution to the question I posed.  The real question is whether or not the controls built in to LabView graphs are truly customizable, and apparently the answer is no.  Therefore I don't believe this thread deserves a bright green Solved! next to it in the thread list.  I would rather leave it open-ended for any other tricks or suggestions that other users may be able to offer, and as an indication for NI that the customization of controls and indicators is one area where LabView could use some improvement.

 

Eric

 

0 Kudos
Message 7 of 13
(5,030 Views)
I completely understand. What version of LabVIEW are you using?
Regards,
Claire Reid
National Instruments
0 Kudos
Message 8 of 13
(4,976 Views)

Have you look at Customizing Graphs and Charts ?

Regards,
Claire Reid
National Instruments
0 Kudos
Message 9 of 13
(4,973 Views)
I'm using version 8.2.  I don't see anything at the link you provided that talks about customizing the scale legend.  What I would like to see, which I'm pretty sure is not available currently in LabView, is when you right click a multi-element control such as a graph and select Advanced->Customize, that you could break apart subcontrols such as the scale legend, retaining certain functional elements, such as the autoscale buttons, and discarding others.
0 Kudos
Message 10 of 13
(4,966 Views)