Some joysticks (certain Caterpillar, Kawasaki...) provide a PWM output as the position signal.
Use a frequency input with the Period function block. The "Period Ratio" output of that function block provides the position value.

Tested on basic controller (CR0403/CR0411/CR2530) - should work the same on classic controllers.