Main Content

Die Übersetzung dieser Seite ist veraltet. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

Logik- und Bit-Operationen

Logik- oder Bitoperationsblöcke wie Logical Operator und Relational Operator

Verwenden Sie Blöcke aus der Bibliothek Logic and Bit Operations, um Änderungen in Signalwerten zu erkennen, logische oder relationale Operationen an Eingaben durchzuführen und Bits in Ganzzahlen zu konvertieren.

Blöcke

Bit ClearSet specified bit of stored integer to zero
Bit SetSet specified bit of stored integer to one
Bit to Integer ConverterMap vector of bits to corresponding vector of integers
Bitwise OperatorSpecified bitwise operation on inputs
Combinatorial LogicImplement truth table
Compare To ConstantDetermine how signal compares to specified constant
Compare To ZeroDetermine how signal compares to zero
Detect ChangeDetect change in signal value
Detect DecreaseDetect decrease in signal value
Detect Fall NegativeDetect falling edge when signal value decreases to strictly negative value, and its previous value was nonnegative
Detect Fall NonpositiveDetect falling edge when signal value decreases to nonpositive value, and its previous value was strictly positive
Detect IncreaseDetect increase in signal value
Detect Rise NonnegativeDetect rising edge when signal value increases to nonnegative value, and its previous value was strictly negative
Detect Rise PositiveDetect rising edge when signal value increases to strictly positive value, and its previous value was nonpositive
Extract BitsOutput selection of contiguous bits from input signal
Float Extract BitsExtract bits from floating-point input samples (Seit R2023a)
Integer to Bit ConverterMap vector of integers to vector of bits
Interval TestDetermine if signal is in specified interval
Interval Test DynamicDetermine if signal is in specified interval
Logical OperatorPerform specified logical operation on input
Relational OperatorPerform specified relational operation on inputs
Shift ArithmeticShift bits or binary point of signal