This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Read the state of a potentiometer


Simulink Coder Support Package for NXP FRDM-KL25Z Board/ FRDM-TFC Shield


The NXP TFC shield comes with two on board potentiometers (POTA and POTB).

The block output emits values from -1.0 to 1.0 based on the current angular position of the potentiometer. These values correspond to the potentiometer being turned fully counter clockwise or fully clockwise respectively.

During simulations without the hardware, this block emits zeroes.



Select potentiometer A or B.

Sample time

Specify how often this block reads the potentiometer value, in seconds.