LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically change x and Y axis to log scale

When a LabVIEW program is not running, right click the graph/chart/XY graph=(choose)=> Properties=(choose)=>Scales, we can set the X and Y axis to Log Scale.
 
However, if the program is running, can we create a control to let users to choose the axis to be normal scale or log scale?
....Users may need to use different axis scales especially when they analysis data from the graph.
 
 
 
 
0 Kudos
Message 1 of 4
(11,686 Views)
Assuming you have only ONE X-axis scale and ONE Y-axis scale, it's easy:

Use a property node for the graph, and choose the XSCALE : MAPPING MODE and YSCALE : MAPPING MODE properties: Set them to 0 for linear or 1 for logarithmic, based on some switch on the front panel.

If you have more than one scale, you'll have to set the ACTIVE SCALE to 0, set MAPPING MODE to whatever you like, set ACTIVE SCALE to 1, set MAPPING MODE to whatever you like, etc., etc.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 2 of 4
(11,682 Views)
hi, CoastalMaineBird ,
thank you very much for your info.
i ve found the way to change axis scale with your help :smileyhappy
cheers

 
0 Kudos
Message 3 of 4
(11,669 Views)

Take a look at this example from the NI community

 

Programmatically Set a Graph Scale to Linear or Log
 

 

 -Hunter

0 Kudos
Message 4 of 4
(11,299 Views)