When the model is running and I want a basicFR whose input port is closed to start accepting flow items. In the script window, I tried two commands:
1. Model.find("BasicFR1").as(Object).input.open();
2. receiveitem(Model.find("BasicFR1"));
The first command open the port successfully while the second one has no effect on the simulation. What's the reason behind this?