Use variables from data dictionary in Plecs Blockset

조회 수: 13 (최근 30일)
Johann Asam
Johann Asam 2021년 7월 28일
편집: Johann Asam 2021년 8월 20일
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에서 Sources에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by