question

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

Array index out of bounds exception from AGV for unloadtrigger

I'm getting the title exception and I don't understand why. I just simple want to load flowitem directly from fork to agv. But when agv unload, the exception arise. What is the cause?

fork_to_agv.fsm

FlexSim 20.1.3
agvprocessflowflexsim 20.1.3forklift
capture063.jpg (231.4 KiB)
fork-to-agv.fsm (41.8 KiB)
· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Ryosuke S, was jason.lightfoot's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

Just put a breakpoint in the code that is complaining - in this case TaskExecuter1's unloadtrigger

time: 13.415038 exception: FlexScript exception: Array index out of bounds at MODEL:/TaskExecuter1>variables/unloadtrigger

You'll see that it refers to the center object connection which doesn't exist.

5 |100000

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