question

guencale avatar image
0 Likes"
guencale asked guencale commented

Queue StayTime always zero

ETEME_CENARIOINICIAL.fsmHello, in my project I want to measure the queue staytimes but it always gives 0. The input is measuring well but the output always gives 0 too and I think this is influencing it. The project has some warnings that we were never able to fix, we don't understand why, if you can also help, we would be grateful.

FlexSim 24.0.0
queuestaytime
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 guencale commented

Let's go over the errors first.

- In "ReleaseVistoria" you typed in "Last Acquired". Whenever you see descriptive names like this in an activity field, you should assume that it is markup text from the code that is generated when the respective option is picked from the dropdown menu. Always use that menu that menu if you don't insert a valid FlexScript expression.

capture1.png

- "indexOf" use round brackets, not square ones. Square brackets are used whenever you access something at an indexed position (a value in an array, table or map). Functions use round brackets for their parameters.

capture2.png


To get the output and staytime to work correctly, move the truck back into the model before you give it a travel task when it was previously moved into another object.

capture3.png


capture1.png (16.5 KiB)
capture2.png (5.4 KiB)
capture3.png (18.0 KiB)
· 2
5 |100000

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