This error may indicate one of two things:
- The signal initial value format is incorrect.
- 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.
1. Initial value
The following signals have initial values that are defined as an array of 3 values.
Signals {
SND_PDU_Curr: 24,{255, 255, 255},SND,MAIN ;
}
Currently, array initial values are not supported. As a workaround, use a scalar value for the initial value instead.
2. Malformed signal representations
Example 1: Whitespace before colon
Signal_representation {
c02_LIN_Sig_1 : LIN_Sig_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.
Example 2: Line break
Signal_representation {
c02_LIN_Sig_64_Encd : LIN_Sig_19, LIN_Sig_20, LIN_Sig_25, LIN_Sig_25,
LIN_Sig_31, LIN_Sig_34;
}
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.