Potentiometer

Simulink controlled potentiometer

Library

Junctions

Description

The Potentiometer block models a variable resistor. The Potentiometer block uses Simulink® signal as input control signal to vary the resistance between the positive and the negative terminals.

The equations for the potentiometer voltage–current relationships when the control signal varies between zero and one are:

Linear:            Vpot=Ipot.(Roff.Ctl+Ron.(1Ctl))Logarithmic:  Vpot=Ipot.(C1.exp(C2.Ctl)+C3)Antilog:           Vpot=Ipot.(C1.log(1+C2.Ctl)+C3.Ctl+Ron)   

  • Linear, Logarithmic, Antilog — Electrical characteristic of the potentiometer.

  • Ctl — Simulink signal

  • Ron — Minimum resistance of the potentiometer

  • Roff — Maximum resistance of the potentiometer

Parameters

Minimum resistance

Minimum input resistance of the potentiometer, specified as a positive scalar. The default value is 10  ohms.

Maximum resistance

Maximum input resistance of the potentiometer, specified as a positive scalar. The default value is 50  ohms. This value must be greater than the minimum resistance.

Potentiometer type

Curve type of the potentiometer: Linear, Logarithmic, or Antilog. The default is Linear.

Percentage of resistance at half wiper

Percentage of resistance at half wiper for logarithmic and antilog potentiometer types, specified as a positive scalar. The valid values depend on the potentiometer type:

  • Logarithmic — Greater than 0 ohms and less than 50 ohms. The default is 20.

  • Antilog — Greater than 50 ohms and less than 100 ohms. The default is 80.

See Also

| |

Introduced in R2015b