question

AlexGS avatar image
0 Likes"
AlexGS asked Julie Weller answered

Python to Flexsim Connection

Hello! I am trying to connect Python to one of my simulations in order to start testing machine learning inside flexsim. Has anybody connected python to flexsim succesfully? I am having a lot of trouble.

FlexSim 22.2.4
pythoninteraction between flexsim and pythonflexsim python
· 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.

Carter Walch avatar image Carter Walch commented ·

Hi @AlexGS,

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 ·

1 Answer

Julie Weller avatar image
2 Likes"
Julie Weller answered

Hey @AlexGS! It's not too difficult to connect python to flexsim. Try checking out this doc that explains it in the user manual

https://docs.flexsim.com/en/23.1/Reference/DeveloperAdvancedUser/ConnectingToExternalCode/ConnectingToExternalCode.html#page-header

You could also check out this post which could explain in more detail how to connect the two:

https://answers.flexsim.com/questions/142548/how-to-get-python-to-read-a-table-in-flexsim.html?childToView=142674#answer-142674

Do you have a more specific question about connecting to python?

5 |100000

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