question

lucas-t avatar image
0 Likes"
lucas-t asked Jeanette F commented

Import lines from an excel file according to the model runtime

I have a very large excel file, and FlexSim crashes when trying to import it all at once, even after doing data cleaning and separating it into 12 different files. So, I would like to import it into FlexSim as needed by the model, for example, every 1 hour of running the model, 10000 rows are imported. I started using FlexSim recently, and I don't know if the best way to solve this problem is with FlexScript in the 'Custom Code' option, or if I should integrate my FlexSim with FlexSimPy. Could someone help me?

FlexSim 23.0.3
excel importpythonlarge file
· 4
5 |100000

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

Jordan Johnson avatar image Jordan Johnson ♦♦ commented ·

I don't know that there is a limit on the size of Excel file. How big is the file? Also, what is the "Data Distinction" method set to? The best mode for large files is Values Only (very fast). Does that mode still crash for you?

0 Likes 0 ·
lucas-t avatar image lucas-t Jordan Johnson ♦♦ commented ·

Thank you for the answer, and I’m sorry for being late. My Excel File has 1656243 lines, and with the “Values Only” mode all the lines are imported, but after the FlexSim model crashes in the same way, and I can’t move the objects in the model. I would like to know how to use the ‘excelmultitableimport()’ or another function that allow me to import lines according to the model runtime. For example, it would be interesting if the model read a limited amount of rows and then run the simulation, and after that read another amount of rows and run the simulation, and so on until all rows are read. As I said before, I am new to FlexSim, and an example using FlexScript would help me a lot. Thank you very much!

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ lucas-t commented ·

Can you post the excel file? It would be good to know why it crashes.

Have you tried making the table a bundle type? It will use less memory and be faster to access.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @lucas-t,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

0 Answers