Menu

parameters of coupled models

2015-02-02
2015-02-02
  • Franz Preyser

    Franz Preyser - 2015-02-02

    Hello!

    It is possible to define parameters of coupled-models in PowerDEVS, but how can I access those parameters in the sub-blocks of the coupled model? Are they stored somewhere in the Scilab-Workspace?
    It would be great, if one could just enter those coupled-model-parameters with their names as parameters of the subblocks...
    Can anyone please help me with that?

     
  • Federico Bergero

    Actually it works EXACTLY as you suggest.
    If a coupled has a paramter named Amplitude its children can have a string paramter with value equals to "%Amplitude". The "%" makes PowerDEVS look for the value in the parent coupled, if not found is look in the grand-parent and so on.
    Best
    Fede

     
  • Federico Bergero

    If it works PowerDEVS will show you the actual value in a read-only grey box.

     
  • Franz Preyser

    Franz Preyser - 2015-02-02

    Allright. The "%" was, what was missing. Thanks a lot for your immediate response.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.