EasyManua.ls Logo

IMC CANSAS - Bitwise Exclusive or

IMC CANSAS
582 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Function Reference 149
imc CANSAS Users Manual - Doc. Version 1.9 - 05.12.2014© 2014 imc Meßsysteme GmbH
Notes: If the function is carried out on two channels, they must share the same sampling rate.
If the 2nd parameter is a numerical value, it must be expressed as a hexadecimal number in the form:
0xiiii (0 i F). If, as an example, you want to subject the lowest 3 bits of the sample values to the OR
operation, then the number 0x0007 must be specified as the 2nd parameter. If the operation should be
performed only on the lowest bit (LSB), the number 0x0001 should be specified as the 2nd parameter.
Data types:
1st input channel
2nd parameter
Result channel
Integer
Integer (2nd parameter is an input
channel)
Integer
Integer
Digital (2nd parameter is an input
channel)
Integer
Digital
Integer (2nd parameter is an input
channel)
Integer
Digital
Digital (2nd parameter is an input
channel)
Digital
Integer or Digital
2nd parameter is a numerical value
Integer
4.10.14 Bitwise exclusive OR
Parameter
definition
1st
parameter
Channel, whose sample values are each to be subjected bit-by-bit to the XOR logic
operation together with the sample values of the 2nd parameter.
2nd
parameter
Channel, whose sample values are each to be subjected bit-by-bit to the XOR logic
operation together with the sample values of the 1st parameters, or numerical value
which is to be subjected to the XOR logic operation together with each of the sample
values of the 1st parameter
Result
Channel with the results of the bit-wise XOR operation.
Description: The values of both parameters are jointly subjected bit-by-bit to the XOR logic operation.
The sample values of the input channels consist of whole 16-bit numbers. If the bit corresponding to the
current sample value is set for just one of parameters, that bit is set in the result, otherwise not.
Remark: For 2 channels to be subjected jointly to the XOR operation, they must both have the same
sampling rate.
If the 2nd parameter is a numerical value, it must be expressed as a hexadecimal number in the form:
0xiiii (0 i F). If, as an example, you want to subject the lowest 3 bits of the sample values to the XOR
operation, then the number 0x0007 must be specified as the 2nd parameter. If the operation should be
performed only on the lowest bit (LSB), the number 0x0001 should be specified as the 2nd parameter.

Table of Contents

Other manuals for IMC CANSAS