NumberOfEntities Problem

34 views
Skip to first unread message

Natanael Lacerda

unread,
May 2, 2024, 1:15:21 PMMay 2
to JaamSim Users Discussion Group
Hello,

I'm trying to use the Input Builder to define the NumberOfEntities in the EntityContainer, however I always get this error: "Trying to resolve output on null entity.

Does anyone know how I can solve it?

The same error appears if I try to use: [FileToMatrix1].Value(this.obj.Pos)(5)*1[min] to define the TravelTime of the EntityConveyor. 
Input_Problem.PNG
ProductionMap.txt
Pack_Problem.cfg

Harry King

unread,
May 2, 2024, 1:52:40 PMMay 2
to JaamSim Users Discussion Group
Natanael,

The 'obj' output for Pack1 is null because it has not received its first entity yet. It is still in Queue1.

Are you sure that you want the number of entities to pack to be determined by the first entity that is packed? It would make more sense to make this value a property of the EntityContainer.

Harry

Natanael Lacerda

unread,
May 2, 2024, 5:07:29 PMMay 2
to JaamSim Users Discussion Group
Hello Herry,

Thank you very much for the quick response.

I made another model in order to exemplify the functioning of my main model. In the model, SimEntity indicates all production data: quantities to be produced, product identification and setup time (is the customer order)

This order before starting to be produced, should be prepared (setup of the machines), represented by TravelTime EntityConveyor1.

I used a Duplicate to replicate the amount of parts required (information contained in the first SimEntity) according to the quantity of parts ordered in the customer’s order, so the first order replicates 20 quantities of EntityGenerator1_1, which will have to go through the machines one at a time (Server1), for example.

For the model to define that the order is finished (all the requested parts were produced), I used an EntitySignal to tell the model when will be the first part of the lot (marked by EntityGenerator1_1, EntityGenerator1_2, etc.) and the last one ( Pack1_1, Pack1_2, etc), then start the next setup time. However for this resolution to be valid, I need to define that the container size is the order size (20 pieces, 25 pieces, 18 pieces, etc., so that the container has all the pieces of the lot and they pass through EntitySignal at the same time (indicating that it has finished all the pieces of the order). So I’m trying to use NumberOfEntities that vary according to order size.

Harry, is there any way around this?

Best Regards,
Natanael

NumberOfEntities.PNG

NewProductionMap.txt
Pack_Problem.cfg
Reply all
Reply to author
Forward
0 new messages