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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Ales B, was jason.lightfoot's answer helpful? If so, please click the red "Accept" button on 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 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:

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.

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.