Two Input Comparator

 

Description

This component compares two inputs.  It outputs a pulse when one signal crosses the other, or it outputs a level output when one signal is above the other, depending on the specified output type.

 

If Interpolation Compatibility is enabled, then the interpolated information (i.e. for the exact time the two inputs cross each other) is generated by the device and sent to the output.  When interpolation is utilized, this device is very accurate even at larger time steps.

 

 

More:

Interpolation Compatible Components

Input Parameters

ConfigurationConfiguration

 

 Name for Identification

 

Text

 

Optional text parameter for identification of the component.

         

 Output Type

 

Choice

 

Select Pulse or Level

 

 

 

 

 

Interpolation Compatibility

 

Choice

 

Select Disabled or Enabled.  See Description for more details.

 

 

 

 

 

Convert Output to the Nearest Integer

 

Choice

 

Select Yes or No.  If Yes is selected, a NINT (Fortran nearest integer) conversion will be applied to the output signal.

 

 

 

Pulse DataPulse Data

 

Output when A>B First Occurs

 

REAL

Variable

Enter the output magnitude when A>B first occurs

 

 

 

 

 

Output when No Transition Occurs

 

REAL

Variable

Enter the output magnitude when no transition occurs

 

 

 

 

 

Output when A<=B First Occurs

 

REAL

Variable

Enter the output magnitude when A <= B first occurs

 

Level DataLevel Data

 

Output when A>B

 

REAL

Variable

Enter the output magnitude when A>B

 

 

 

 

 

Output when A<=B

 

REAL

Variable

Enter the output magnitude when A <= B