question

Ale avatar image
0 Likes"
Ale asked Ale commented

Task executer error

capture.jpgcapture-2.jpgcell-2-11.fsm

Hi,

I keep getting an error see attached pic. and the next 4 operators are not moving see attached picture.

I also attached the model.

Thanks,

AN

FlexSim 17.1.4
error message
capture.jpg (61.9 KiB)
capture-2.jpg (79.7 KiB)
cell-2-11.fsm (266.7 KiB)
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

Matt Long avatar image
0 Likes"
Matt Long answered Ale commented

Your Clean Operator Resource is set to be Numeric. So when you Acquire a resource from the Clean Operator, the label that gets assigned to the acquiring token is just the number 1. You then call

token.resource.as(Object).centerObjects[1]

on a label with a number. It throws an exception since it can't convert a number to an object. You just need to change your Clean Operator Resource to point at an Operator in the 3D model.

· 5
5 |100000

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

Ale avatar image Ale commented ·

I have 4 operators, so I just need to point out one of them with the sampler?

0 Likes 0 ·
Matt Long avatar image Matt Long Ale commented ·

If you sample a single operator and then put the count as 4, the Resource will duplicate the sampled operator 3 times so you have 4. If you don't want to duplicate the operator and just use 4 operators already in your model, you can add them to a Group and then have the Resource point to the Group (sample the Group in the Toolbox or choose the Group from the drop down menu next to the Resource Reference field). If you reference the Group, the Count becomes the number of objects in the Group to use (so if you only wanted to use 2 operators from the Group, the Count field would be 2).

1 Like 1 ·
Ale avatar image Ale commented ·

Hi Matt,

Thanks for the explanation. but on the solder operators there was no group created for them and they are working fine if I'm wrong let me know. Now I'm getting the error below. Should I just call customer support?

capture3.jpg

0 Likes 0 ·
capture3.jpg (102.8 KiB)
Matt Long avatar image Matt Long Ale commented ·

Your PT Prep label on the tokens has two spaces instead of 1.

0 Likes 0 ·
Ale avatar image Ale Matt Long commented ·

thanks!

0 Likes 0 ·