This version (21 Jun 2012 21:05) was approved by William Jahn.

This is an old revision of the document!

Logic - And, Or, Nand, Nor, Xor

Click here to return to the Basic DSP page

The Logic block applies one of five selectable logic operations to the two input signals and outputs the result on the output pin. And, Or, Nand, Nor, and Xor operators are available.

To change the operator: Left click on the icon button, each click will toggle the active operator which is shown in the icon image and label.

Note: the operator is a compile time settings you will have to compile and download the project each time you change the operator.

Input Values: This block should be used with DC input signals (positive 5.23 format). Also, this block is designed for use with boolean input values only, either 1.0 or 0.0. While not recommended, if necessary some operators can still function with arbitrary floating point values as input, but the output behavior may be ambiguous depending on the selected operator.

/srv/ · Last modified: 03 Jan 2013 20:42 by