Named Analog Input

I/O Block

Description

Named IO resources are described on the Setup Tab. Rather than referring to analog inputs by number they can instead be given meaningful names. This block returns the voltage on the input chosen on the Setup Tab with a resolution of 16 bits.

Escapes

The Named Analog Input block does not produce any escapes.

Examples

This Show block, associated with a Text Object drawn on the Console tab, continually shows the voltage on the configured pin of a joystick control:

This block list uses that Joystick voltage to adjust the speed of a motor:

When this manual control mode is no longer needed the Joystick_Enabled boolean can be set to false. This loop will terminate and the list will then insure that the motor comes to a stop before ending.

Related Topics

Named IO