LIN Pack block can't handle signals with offset

when i use lin pack block to pack signals with offset, i find the lin pack block can only handle uint8 sig, that can't represent signed or float data.
so, how can i do with the sig, whitch has offset or factor?

4 Comments

No. For example, I have a signal with -45 offset and 90 maximum, we can see that:
When I give it zero, the output data is 45, I can not represent less then 45 because it only accepts uint8 as input.
Even I give it 245, try to make it overflow, the output data will also limit in 90.
That sounds like you are using a bias block, but you say "No" to my question of whether you are using a bias block?
Is that a LIN pack block? The LIN pack block that I find only accepts a single input port, and does not have any sort of bias ?
It is the LIN pack block.
When you select a LDF file, it can parse the file and generate ports of all the singles of the selected frame. I'm not mean to hanle a single signal with offset witch you said "bias" block. I want use LIN pack block to parse LDF file and auto handle all signals of a lin frame, and output a LIN Data. I dont know it is a bug of the "LIN pack block" or there are something i dont find.

Sign in to comment.

Answers (0)

Products

Release

R2022b

Tags

Asked:

on 13 Nov 2024

Commented:

on 15 Nov 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!