question

student-loging avatar image
0 Likes"
student-loging asked student-loging commented

Using Decide to make boat leave dock

Hello flexsim community,

I am trying to make a process where a boat arrives at the dock, a crane (robotarm) will unload the boat, and when the boat is empty it is supposed to leave the dock.

So far the boat arrives, is unloaded, and then just stands still when its empty and the crane is finished unloading. Appreciate all help!


Here is a link to the model:

Testfil for decide funskjonen.fsm

FlexSim 24.2.1
decide activity process flow
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered student-loging commented

The Decide should check if the ship is empty, not the robot. You don't need (or should) write an "if" to the condition field. The expression you write there is inserted into an if-statement that is fixed in the code for the "Conditional Decide" option.

1742474281158.png

You refer to a non-existant table at various points in the model. I removed those in the attached model to not have constant error messages.

testfil-for-decide-funskjonen_1.fsm


· 3
5 |100000

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

student-loging avatar image student-loging commented ·

Thank you so much for the answer. Unfortunately my model will not run. Which non-existant table are you refering to? I have changed the decide function to the same as you. I'll attach my file once again.

Testfil for decide funskjonen.fsm

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann student-loging commented ·

In the model you uploaded in your question a table "størrelse" is referenced in various places.

There is still a ")" at the end of the condition that needs to be removed. And you have to add the "Ship" label to the token and have it point to the ship object.

0 Likes 0 ·
student-loging avatar image student-loging Felix Möhlmann commented ·
Thank you so much for the help :)
0 Likes 0 ·