Click here to return to the Basic DSP page
The AB In / CD Out Condition block lets you compare the sample-by-sample level of two incoming signals (AB) and output the sample of the signal meeting the condition.
This algorithm works only for DSPs with a conditional instruction.
Click the blue icon in the block to select what condition you want to execute:
When the condition is met, your output sample is A; otherwise it's B.
Note that you will need to recompile your project every time you select a different condition.
For a sample design using this block, see the Basic DSP example.