Effacer les filtres
Effacer les filtres

Use variables from data dictionary in Plecs Blockset

14 vues (au cours des 30 derniers jours)
Johann Asam
Johann Asam le 28 Juil 2021
Modifié(e) : Johann Asam le 20 Août 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?

Réponse acceptée

Johann Asam
Johann Asam le 20 Août 2021
Modifié(e) : Johann Asam le 20 Août 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

Plus de réponses (0)

Catégories

En savoir plus sur Manage Design Data dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by