Overview
General logical comparison module
Discussion
This module implements a general purpose logical comparison module that is capable of realizing many different comparison functions. The behavior of the logic compare is controlled by the compareType parameter. compareType is an integer in the range from 0 to 5 inclusive.
...
compareType = 5, performs logic greaterthan equal operation.
Type Definition
Code Block |
---|
typedef struct _ModuleLogicCompare { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 compareType; // Selects the type of comparison that is implemented by the module: EQUAL=0, NOTEQUAL=1, LESSTHAN=2, LESSOREQUAL=3, GREATERTHAN=4, GREATEROREQUAL=5 } ModuleLogicCompareClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
compareType | int | parameter | 0 | 0 | 0:5 |
Pins
Input Pins
Name: in1
Description: Audio input 1
...
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: Logical output
Data type: int
MATLAB Usage
File Name: logic_compare_module.m
...