Hi Yun-Tsung,
sfix32: This typically stands for "signed fixed-point 32-bit".
- Signed: Indicates that the number can be both positive and negative, with the most significant bit (MSB) representing the signed bit.
- Fixed-point: A method of representing real numbers that has a fixed number of digits after the decimal point.
- 32-bit: The total size of the data type is 32 bits. This includes both the integer and fractional parts.
en24: This refers to the "encoding" with 24 bits.
- It means that 24 bits are used for the fractional part, leaving 8 bits for the integer part which includes signed bit also.
In summary, "sfix32 en24" describes a signed, fixed-point number with a total size of 32 bits, where 24 bits are used for the fractional part and 8 bits are used for integer part.
If you are using a data type conversion block in Simulink to convert the sfix32 en24 data type to another data type, the data might get clipped based on the number of integer bits used in the conversion and you might see clusters. You can also adjust the "input and output to have equal" parameter in the data type conversion block, with options for "Real World Value (RWV)" and "Stored Integer (SI)", to ensure you have the correct bit configuration for your needs.
Hope that helps!
Best regards,
Dharma