Blocks

Blocks#

Tunable Sigmoid

Block performing a sigmoid transformation on an analog signal. The blocks can be mathematically described as:

\[\begin{aligned} y = g\sigma(ax - d) \end{aligned}\]

where \(g\) is the gain, \(a\) the slope, and \(d\) the bias of the sigmoid function. The gain \(g\) can optionnaly be set as an input.

Input:

In (analog) – Input signal \(x\).

Optional Input:

g (analog) – The gain of the sigmoid \(g\) as described in the parameter section.

Output:

Out (analog) – Output signal \(y\).

Parameters:
  • Type – The type of sigmoid function. Can be set to ‘Sigmoid’ or ‘Tanh’. Default value is ‘Sigmoid’.

  • Gain – The gain \(g\). Default value is 1.

  • Gain Source – Where to get the gain value from. Can be set to ‘Internal’ or ‘External’. Default value is ‘Internal’.

  • Bias – The bias \(d\). Default value is 0.

  • Slope – The slope \(a\). Default value is 1.

First Order Lag

Block filtering an analog signal with a first order lag. The blocks can be mathematically described as:

\[\begin{aligned} \tau\tau_r\dot{y} &= gx - y \end{aligned}\]

where \(\tau\) is the timescale, \(\tau_r\) the relative timescale, and \(g\) the gain.

Input:

In (analog) – Input signal \(x\).

Output:

Out (analog) – Output signal \(y\).

Parameters:
  • Gain – The gain \(g\). Default value is 1.

  • Timescale – The timescale \(\tau\). Default value is 0.004.

  • Relative Timescale – The relative timescale \(\tau_r\). Default value is 1.