photo eye issue

photo eye issue

ales_b
Not applicable
16 Views
2 Replies
Message 1 of 3

photo eye issue

ales_b
Not applicable

[ FlexSim 20.1.3 ]

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
35652-34734-1606700405944.pngWhat is the cause of this error?

How should I handle the error?



0 Likes
Accepted solutions (1)
17 Views
2 Replies
Replies (2)
Message 2 of 3

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

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];


0 Likes
Message 3 of 3

Jeanette_Fullmer
Community Manager
Community Manager

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