question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Ryosuke S commented

Array Index out of bound at Unload in ProcessFlow

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

FlexSim 19.0.2
processflow error
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Ryosuke S commented

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.

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

Array.reverse()

Manual Flexscript Class Reference: Array reverse


· 1
5 |100000

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

Ryosuke S avatar image Ryosuke S commented ·

Thank you for your reply.

It worked perfectly.

Best Regards,

0 Likes 0 ·

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.