Overview
General logical comparison module (multichan)
Discussion
This module computes logical comparison operations using two input values. If the result of the evaluation is true, a one (1) will be written at the corresponding output wire, otherwise a zero (0).
...
This module supports only control data of block size = 1.
Type Definition
Code Block |
---|
typedef struct _ModuleLogicCompareNInt32 { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 numComps; // Number of operations to be computed INT32* compareConfig; // Column 1 and 2: Channel index, Column 3: EQUAL=0, NOTEQUAL=1, LESSTHAN=2, LESSOREQUAL=3, GREATERTHAN=4, GREATEROREQUAL=5, CONST 1=6, CONST 0=7. Selects the type of comparison that is implemented by the module (one per row). } ModuleLogicCompareNInt32Class; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
numComps | int | const | 0 | 1 | Unrestricted | |
compareConfig | int* | parameter | 0 | [1 x 3] | Unrestricted |
Pins
Input Pins
Name: in
Description: Control input
...
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: Control output
Data type: int
MATLAB Usage
File Name: logic_comparen_int_module.m
...