question

chia725 avatar image
0 Likes"
chia725 asked Jeanette F commented

Multi-load with Assigning type

Hello,

I encountered some problem when conducting multi-load with the assigning type. I register my data in "GlobalTable1". This is the step I used:

1. Convert the input data in global list to an array with FlexScript. (from "type_transform" to "type" )

2. Register the number of goods that needs to be load in "load_count"

3. Use subflow to try to load the right type of data

But I am not sure how to get the position of array in global table correctly to achieve multi-load with the assigning type of data. Thank you for any of your kind suggestions and help!


Model:0427-multi-load.fsm

FlexSim 21.0.10
processs flowloaditemtype
0427-multi-load.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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @chia725, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

The settings of the "Run Sub Flow" activity should look something like this.

capture1.png

- Create as many tokens as there are entries in the "type" array

- Assign each child token one of the type values


capture1.png (17.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.