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.

Jeff Nordgren avatar image Jeff Nordgren commented ·

anonymous user,

I don't know what is causing the error you are getting. Because when I run your model, I don't get any kind of error. So without being able to duplicate it, I'm at a loss as to what to tell you. It just works on my end. I've saved the model (attached) and am sending it back in case there was something weird when it got transferred.

If your problem still persists, try and give us as much information as you can about what happened, when, time, etc.

Thanks.

photo-eye-error-0-JN1.fsm

0 Likes 0 ·

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.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·
anonymous user @Jason Lightfoot This issue is fixed in 23.0.7 and 23.1.1 released today.
2 Likes 2 ·
anon-user avatar image anon-user commented ·

thank you for your answer


Is this a specification?

Is it a bug?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ anon-user commented ·

It's an inadequate trigger but one that the user controls so you can adjust it. Could have been an oversight/assumption that failed. I've submitted it for improvement.

0 Likes 0 ·
anon-user avatar image anon-user commented ·

Where can I specifically comment out to prevent the error?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ anon-user commented ·

Actually it's just line 4:

//Conveyor.Item conveyorItem = conveyor.itemData[item];
0 Likes 0 ·
anon-user avatar image anon-user Jason Lightfoot ♦♦ commented ·

Thank you!

For the time being, I comment out and use it.

0 Likes 0 ·