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.

Andrew O avatar image Andrew O commented ·

Hi @Ahmad_zulfy A, was one of Jason Lightfoot's or Long G's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
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 Long G commented ·

In this question ,i find that Queue's 'batch' can be change dynamically but Processor's 'Max Content' not in the properties window.In Processor Trigger,that will be ok.I probably needn't change it manually ,but is it a bug?

0 Likes 0 ·
Long G avatar image Long G Long G commented ·

I think it should like Combiner's 'Components Lists',when manually increase the value (but decrease make it stop),operation should not work instead of Processor stopping...

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Long G commented ·
The max content is a property that can be set using setProperty.
0 Likes 0 ·
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.

Ahmad_zulfy A avatar image Ahmad_zulfy A commented ·

can you help me to making my file with step 1 that you recomended ?

0 Likes 0 ·
Long G avatar image Long G commented ·

batch-process v2303.fsm

2023228-150244.png

That's what you mean? My version is 23.0.3.

And you'd better add a Queue with target batch 4 between your two processor,otherwise i don't understand when i see it.

0 Likes 0 ·