question

anon-user avatar image
0 Likes"
anon-user asked Matthew Gillespie commented

Photo Eye error

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.3photo eyeerror messagesphotoeye
· 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 Matthew Gillespie commented

This is demonstrated in the attached model where the clear timeout is longer than the time the item is in the conveyor system.

The workaround is to comment out everything in the predefined template that refers to the item.

I'll submit it for review/improvement.photo-eye-error-0_jl.fsm


· 6
5 |100000

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