I am receiving an error that occurs under a specific combination of input data type and vector of input/output values for the Lookup Table block.
If the input data type is double and if either the input or output values of the Lookup Table block are defined as Simulink.Parameter with a non-double data type (for example, int16), the simulation works correctly. However, the following error occurs during code generation:
"Real-Time Workshop Error in block: "MLOG_DC_Error/Parameter_int16", block type "Lookup": Cannot access the address of expression, (double(Param_int16)), in InputValues."
I looked into "look_up.tlc" and found that a TLC variable "InputValues" has expression "double(Param_int16)" as the String field. I thought this "double(Param_int16)" is not a valid MATLAB expression and this might be the cause of the error. Additionally, I looked into the generated RTW file, and "double(Param_int16)" is already contained in the RTW file.
Best Answer