I've created a Simulink library with blocks that use an enumerated type ("LU_Modes") that I've defined in my main model's data dictionary. In a library block I can create a constant with an "Output data type:" of class "Enum: LU_Modes" without Simulink complaining when I apply the setting.
However, I cannot set the constant's value to "LU_Modes.Off" (where "Off" is one of the enumeration values defined) without an error stating:
"The model uses enumerated type 'LU_Modes' defined in design_data.sldd, but the model is not linked to that dictionary."
I've tried using simply "Off" instead of "LU_Modes.Off" for the constant value but, while it will accept it, when I update or build the model Simulink complains "Off" is an undefined function or variable.
Logically, I would like my library to be linked to my data dictionary, but I've looked everywhere I can think of to configure that and cannot find where. In a model's properties there is a "Data" tab that allows for its linking to a data dictionary, but no such tab in a library's properties.
How can one create blocks within a library that use values from a data dictionary? Would using referenced models be the answer?
Thank you for any help in this regard,