Clear Filters
Clear Filters

Use variables from data dictionary in Plecs Blockset

14 views (last 30 days)
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?

Accepted Answer

Johann Asam
Johann Asam on 20 Aug 2021
Edited: Johann Asam on 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

More Answers (0)

Categories

Find more on Manage Design Data in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!