I have a manufacturing model that has several queues after servers. I would like to use the number of entities in one particular queue to trigger a hold on entity creation i.e. if more than 20 entities in the queue then stop feeding in more raw materials from inventory.
I assume I'll use an event based entity generator (or time based with release gate) and know how to get queue size out of the queue but am unsure how to use this to generate the function to release or create an entity.
I can see Simulink has many logic (e.g. relational operator) functions that I can drag in but would have thought this so common that Simevents would have its own blocks.
Do I need to use logic blocks from Simulink to trigger entity creation / release or is there a more elegant or integrated way from Simevents?