close/open input and Availability control
Posted: Thursday 09 January, 2014 - 14:08
Hi all.
I have a problem with using the availability control in combination with the openinput/closeinput scripts.
I want to close the inputchannel of atom 'X' in the beginning of a simulation run, and use the code
in the Initialize atom. This works fine when I run the model.
However, when I add an availability control atom to my model to control a different atom 'Y', the previous code doesn't seem to work anymore.
Note that I connected the Availability control atom only to atom Y, not to atom X.
Why does this occur and how can a solve this problem in such way that my openinput/closeinput commands work, in combination with the use of a availability control atom?
Thank you in advance,
René
I have a problem with using the availability control in combination with the openinput/closeinput scripts.
I want to close the inputchannel of atom 'X' in the beginning of a simulation run, and use the code
Code: Select all
closeinput(atombyname([X],model)
in the Initialize atom. This works fine when I run the model.
However, when I add an availability control atom to my model to control a different atom 'Y', the previous code doesn't seem to work anymore.
Note that I connected the Availability control atom only to atom Y, not to atom X.
Why does this occur and how can a solve this problem in such way that my openinput/closeinput commands work, in combination with the use of a availability control atom?
Thank you in advance,
René