question

RUCU17 avatar image
0 Likes"
RUCU17 asked RUCU17 commented

How can I create new processors when importing an Excel file?

IMPORTEXCEL.xlsx


CREATENEWPROCESSOR.fsm

I want to know how to create new processors when importing and reading the excel file? My goal is to decide through an excel cell how many processors to use in the model. Imagine typing on a cell "3" and right after importing the excel file on FlexSim 3 processors appear.


There is a cell with the Inter-Arrival time of the items in the excel file uploaded to this query. In there you can modify the number of the cell and then, when importing the file into FlexSim the source arrival time change.


In conclusion, the purpose is to use the uploaded excel file to import it into the FlexSim file, also uploaded, in order to create the number of processors indicated in the excel cell.

FlexSim 23.1.0
dispatcherexcel importprocessors
5 |100000

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

1 Answer

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

To create copies of the processor you can use the "Delete and Copy Group Members" option in a model parameter.

capture1.png

Create a group for the processor and use the samling tool next to the reference field of the parameter to select the group and choose that option.

Then, in the Post Import Code, set the parameter to be equal to the relevant table cell and reset the model for the change to take effect.

createnewprocessor_1.fsm


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

RUCU17 avatar image RUCU17 commented ·

Thank you so much Felix! That was what I was searching for. Cheers.

0 Likes 0 ·