26 - 09 - 2017

Analog library

Block Around

The block compares the inputs signal In with parameter AroundVal. The output IsAround will become to hight value depending from parameter AroundType:

  • If AroundType=Around, output will be in hight value when absolute value of (In-AroundVal)>=Difference;
  • If AroundType=AroundAndOver, output will be in hight value when (In+Difference)>AroundVal;
  • If AroundType=AroundAndUnder, output will be in hight value when (In-Difference)<AroundVal;

 

If the input SetAround become to hight value, then parameter AroundVal will gets the value of input Around. The block will stop to work in low level of parameter Checking. If the input Checking is not connected, the block will work permanently.

Parameters:

  • AroundType;
  • AroundVal;
  • Difference;

 

Block CheckForChanges

The block has an analog input X, digital output Y and two parameters: CheckedDifference and CheckedSecs. If the changes of input X for last CheckedSecs seconds is under the value entered in parameter CheckedDifference, then the output Y will become to hight value. For example the values of parameters are CheckedDifference=3.0, CheckedSecs=20, the input signal X for last 20 seconds moves from 55.0 to 57.0, the changes of input signal is under parameter CheckedDifference=3.0>(57.0-55.0)=2.0, this is the reason because the output Y will  become to hight level. If the input Checking is in low level, the block doesn't work. If the input Checking is not conencted, then the block will work permanently.

Parameters:

  • CheckedDifference;
  • CheckedSecs;

 

Block AnalogSwitch

The block has 4 analog switches A, B, C, D. Every switch has two inputs, A has inputs A1, A2, B has inputs B1, B2 and etc. Which input to be connected to the output depends on value of input Index. If it is 1, the output of switch gets value of first input, if it is 2, the analog switch gets second input value. 

Parameters: The block has not parameters.

 

Block AnalogSwitch8

The block has one analog switch with 8 inputs. Which input to be connected to the output depends on value of input Index.

Parameters: The block has not parameters.

 

Block AnalogConst

This block is very simple. Its output Y gets  the value of its parameter Const.

Parameters:

  • Const;