question

Ales B avatar image
0 Likes"
Ales B asked Jeanette F commented

photo eye issue

Using Photo Eye, I'm trying to send a message if an item doesn't come in for 10 seconds.


But I get an error.

time: 93.144454 exception: FlexScript exception: Invalid item in Conveyor.itemData[] call at MODEL:/PE1>variables/localType/clearTrigger
What is the cause of this error?

How should I handle the error?



FlexSim 20.1.3
flexsim 20.1.3simulation
· 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.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

If you've a long delay on the clear trigger then it's likely the item has left the conveyor system. Get around it by commenting out this line:

  1. Conveyor.Item conveyorItem = conveyor.itemData[item];


5 |100000

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