question

Oscar C13 avatar image
0 Likes"
Oscar C13 asked Ryan Clark answered

Change the output in the fluid module

Hello,
I want the change the output of the tank when 70 seconds have passed. I have tried what I have read in these 2 questionsbut obviously I am doing something wrong:

https://answers.flexsim.com/questions/35498/how-to-change-input-port-based-on-quantity-of-flui.html

https://answers.flexsim.com/questions/115284/problem-with-fluid-splitter.html?childToView=115277#answer-115277

I attach an example:

ExitFluid.fsm

FlexSim 21.2.2
fluidexit
exitfluid.fsm (31.4 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Ryan Clark avatar image
0 Likes"
Ryan Clark answered

Hi @Oscar C13,

I was able to adjust your model to achieve your desired behavior. I adjusted the Custom Code on the "On Message" trigger on FluidTank3 to correctly refer to the variables you were trying to change, and that worked to change the output after the Delay. I also added an On Reset trigger to change the output rates back to the original rates you had.

exitfluid-rc.fsm

I hope this helps! Let us know if you have further questions!


exitfluid-rc.fsm (32.0 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.