Why does the LIN Pack/Unpack block fail to parse the LDF file with the error "Unable to parse the signal representation section in the LDF file"?

3 views (last 30 days)
Why do I get the following error with the LIN Pack or LIN Unpack block from the Simulink Real-Time library?
Unable to parse the signal representation section in the LDF file.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 13 Jun 2023
This error may indicate that the signal representation section in the LDF file is malformed. As a result, it cannot be parsed by the LDF file parser and the block throws the error dialog.
Here is an example of a malformed signal representation section:
Signal_representation {
c02_LIN_Sig_1 : LIN_Sig_1;
c02_LIN_Sig_64_Encd : LIN_Sig_19, LIN_Sig_20, LIN_Sig_25, LIN_Sig_25,
LIN_Sig_31, LIN_Sig_34;
}
There are two issues in the signal representation section:
1. For each signal_representation token in the file, there is a space after the signal representation name and before the ":". This space should be removed.
2. There is a new line character in a single signal_representation token. Every token should be in one line.
The fixed signal representation section would looks like this:
Signal_representation {
c02_LIN_Sig_1: LIN_Sig_1;
c02_LIN_Sig_64_Encd: LIN_Sig_19, LIN_Sig_20, LIN_Sig_25, LIN_Sig_25, LIN_Sig_31, LIN_Sig_34;
}
If the above tips don't apply, please contact MathWorks Technical Support and send us the LDF file for further investigation.

More Answers (0)

Categories

Find more on Digital Input and Output in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!