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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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
If it works PowerDEVS will show you the actual value in a read-only grey box.
Allright. The "%" was, what was missing. Thanks a lot for your immediate response.