question

Ahmad_zulfy A avatar image
0 Likes"
Ahmad_zulfy A asked Andrew O commented

create batch process animation

batch process.fsmHow can i make the animation that show batch processing at the processor ? from example a batch contain 3 item so at the processor show 3 item in 1 process

FlexSim 21.0.10
batch processing
batch-process.fsm (47.9 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.

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot commented

You've chosen processing time triggers for the processors that return 0 for all but one item in the batch - so the processing is done sequentially, one item at a time which means you can't show them being processed in parallel on the machine.

If you need the batch number to be available before processing starts, and to process them in parallel then you can change the capacity of the processors to match the batch size, use a fixed processing time, and place a queue in between the processors that is set to batch the items. Attached is an example of this - probably the simplest method ( you can also use process flow or combine the items in to a single flow item)

batch-process_jl.fsm


· 3
5 |100000

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

Long G avatar image
0 Likes"
Long G answered Long G edited

There are two ways.

One of them is using code creat item subnode by batch num :

insertcopy(item,item);

item.first.as(Object).location=[0,0,item.size.z];

The another is using Process flow:

Creat item, push to ItemList, and then pull them with request&require num(you can set it by token label dynamically), afeter that, make them together like above.

Because changing processor content when model is running may let something go wrong ,so dose Queue's batch.

· 2
5 |100000

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