Array Index out of bound at Unload in ProcessFlow

Array Index out of bound at Unload in ProcessFlow

sakamoto_ryosuke
Collaborator Collaborator
13 Views
2 Replies
Message 1 of 3

Array Index out of bound at Unload in ProcessFlow

sakamoto_ryosuke
Collaborator
Collaborator

[ FlexSim 19.0.2 ]

Hello,

I'm quite new to FlexSim and I'm trying to create simple simulation as

operator to pick material in order and unload at the sink using processflow.

The error tells me that it us caused by Array index out of bounds at MODEL:/Tools/ProcessFlow/ProcessFlow/Unload.

I try to find some parameter to adjust the size of array, but I don't understand

which array the Unload is referring to. How can I fix this error?

Thank you in advance,

Rick Sakamoto

capture.pngtest-20200129-pickorder-en.fsm

0 Likes
Accepted solutions (1)
14 Views
2 Replies
Replies (2)
Message 2 of 3

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

The assign label activity, where you append the token.item to itself, doesn't do what you want.

I suggest you delete this assign strategy there and you use instead a different option in the Pull from List activity.

25284-accumulate-pulled-item-in-array.jpg

If you want to reverse the order in the array, there is the method

Array.reverse()

Manual Flexscript Class Reference: Array reverse

0 Likes
Message 3 of 3

sakamoto_ryosuke
Collaborator
Collaborator

Thank you for your reply.

It worked perfectly.

Best Regards,

0 Likes