ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Swap Scales in Labview

Does anyone know if you can programmatically swap scales (y-scales) in Labview.  If so, how?

 

Thanks

0 Kudos
Message 1 of 4
(3,608 Views)

Hi rmz,

 

there's a YScale.Swap property, which allows you to swap the min and max value of the scale.

 

When you want to swap the position of the Y axis (left or right side of the graph): this is only allowed at edit time. (I couldn't find a property for this.)

Possible solution workaround: create as many Y axes as you might need. Hide them when unused (using a property node). Assign the plots to the Y axis at runtime (using a property node).

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(3,577 Views)

It'll take some experimenting, but you can do it like this:

cs.png

Note: If you move the scale to a funky position, the chart can become confused.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 4
(3,563 Views)

That is a good idea and probably is my best option.  Thanks.

0 Kudos
Message 4 of 4
(3,551 Views)