From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI graph control Y axis division

I want to set the Y axis division in 25 increment. For example, 0, 25, 50, 75, 100, 125.... regardless of the scale value. If the scale is 470, it will go like .....425, 450, 470. Anybody knows how to achieve this? 

Thanks,

 

Marg_SZ

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

You can use the control attribute ATTR_YDIVISIONS and do the calculation manually: round the upper scale value to a multiple of 25, then y_divisions = ( upper_scale_rounded - lower_scale ) / 25

0 Kudos
Message 2 of 3
(4,180 Views)

Good, I will try that. Thank you for help.

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