Use variables from data dictionary in Plecs Blockset

14 次查看(过去 30 天)
Is there any possibility to directly use varibles from a linked data-dictionary in a subcircuit which is modeled using Plecs Blockset? For all other native Simulink subcircuits this is no problem by just specifying the variable name as Parameter, but Simulink Blockset always throws the following error:
Error evaluating parameter '<parameterName>' in component MainCircuit/PlecsCircuit/Component: Unrecognized function or variable '<variableName>'.Error
So, obviously the Plecs circuit is not able to access the linked data dictionary. Is there any option or work around to get access to the variables stored in the dictionary?

采纳的回答

Johann Asam
Johann Asam 2021-8-20
编辑:Johann Asam 2021-8-20
Actually I found a solution:
You can modify the mask of the plecs subsystem. There you would need to add an edit field for each variable and enter as name and as well as default value the name of the variable in the data dictionary. Then the specified dictionary variables are also available in the Plecs environment, although the edit fields will not be accessible from the subcircuit Block Parameters

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Manage Design Data 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by