Filter löschen
Filter löschen

Use variables from data dictionary in Plecs Blockset

14 Ansichten (letzte 30 Tage)
Johann Asam
Johann Asam am 28 Jul. 2021
Bearbeitet: Johann Asam am 20 Aug. 2021
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?

Akzeptierte Antwort

Johann Asam
Johann Asam am 20 Aug. 2021
Bearbeitet: Johann Asam am 20 Aug. 2021
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

Weitere Antworten (0)

Kategorien

Mehr zu Manage Design Data finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by