Backlash

Implements a backlash or deadband function.

1378

Inputs/Outputs

datatype_icon

reset

A Boolean or a Boolean array that determines whether to use initial output to perform the deadband computation.

True Uses initial output to perform the deadband computation.
False Uses the previous output to perform the deadband computation.

This node automatically uses initial output to perform the deadband computation on the first call.

Default value: False

datatype_icon

input

Input signal.

This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.

datatype_icon

deadband

Width of the deadband.

This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.

Default value: 0

datatype_icon

initial output

Value that this node compares with input the first time the backlash function executes or when reset is True.

This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.

Default value: 0

datatype_icon

output

Output signal.

This output can return a double-precision, floating-point number or an array of double-precision, floating-point numbers.

Algorithm Definition for the Backlash Function

The following equation defines the backlash function.

y ( t ) = { y ( t 1 ) if | u ( t ) y ( t 1 ) | d e a d b a n d 2 u ( t ) d e a d b a n d 2 if | u ( t ) y ( t 1 ) | d e a d b a n d 2 and u ( t ) > y ( t 1 ) u ( t ) + d e a d b a n d 2 if | u ( t ) y ( t 1 ) | > d e a d b a n d 2 and u ( t ) y ( t 1 ) y ( t ) = { y ( t 1 ) if | u ( t ) y ( t 1 ) | d e a d b a n d 2 u ( t ) d e a d b a n d 2 if | u ( t ) y ( t 1 ) | d e a d b a n d 2 and u ( t ) > y ( t 1 ) u ( t ) + d e a d b a n d 2 if | u ( t ) y ( t 1 ) | > d e a d b a n d 2 and u ( t ) y ( t 1 )

where

  • u is the input signal
  • y is the output signal
  • t is the current simulation time