UTOI – Unsigned to signed integer number conversion
Block SymbolLicensing group: STANDARD
Function Description
The block regards input (positive) number as a binary complement representation of
signed number (e.g. comon representation in today processors). The range of the
representation is defined by the parameter bits. Typical ussage is parsing signal
from data structures of comunication driver. If one of comunicating processor is
big-endian and second processor little-endian you can need swap byte order. It is
realize by the SWAP parameter. It is recommended to set SWAP=on only in case the
bits parameter is set to 16 or 32 because other cases ussualy not solve endianess
problem.
Input
u | Unsigned input signal -9.22337E+18 9.22337E+18 | Large (I64) |
Parameters
bits | Valid (LSB) bits in input signal 2 64 16 | Long (I32) |
SWAP | Swap input byte order | Bool |
Output
i | Converted (signed) input signal | Large (I64) |
[Previous] [Back to top] [Up]
2023 © REX Controls s.r.o., www.rexygen.com