question

Omar Aguilera Rico avatar image
0 Likes"
Omar Aguilera Rico asked Omar Aguilera Rico commented

Problem with rackgetnrofbays

In the attached model, everything was working fine and suddenly I started to see an error when resetting the model. How can I solve it?

problem.fsm

FlexSim 19.1.0
rackscommands
problem.fsm (289.0 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

Joshua S avatar image
0 Likes"
Joshua S answered Omar Aguilera Rico commented

You probably changed the names of your racks recently and they don't correspond with the names you are trying to find on all you OnReset Triggers for your Racks. Right now this rack is trying to reference Rack1, which doesn't exist anymore.


pic1.png (27.3 KiB)
· 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.

Omar Aguilera Rico avatar image Omar Aguilera Rico commented ·

It is correct, change the name of the racks. Ignore putting Object Rack = current; instead of Object Rack = Model.Find("Rack1");. Thanks @Joshua S!

0 Likes 0 ·