question

TheHero avatar image
0 Likes"
TheHero asked Jason Lightfoot commented

Flexsim connecting to other application via API

Can we connect flexsim to other application such as HMI, PLC, SQL database & other testing web servers without using emulation & database connectors inbuild in flexsim but using API.

FlexSim 22.1.1
api
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @TheHero, was Logan Gold'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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Logan Gold avatar image
0 Likes"
Logan Gold answered

I think you will want to take a look at the "Connecting to External Code" section of the user manual:

https://docs.flexsim.com/en/22.1/Reference/DeveloperAdvancedUser/ConnectingToExternalCode/ConnectingToExternalCode.html

These options allow you to connect FlexSim to external sources, which could then be used to communicate with other applications using those applications' APIs. You have the ability to connect to Python code or C/C++ code, and you can even create your own FlexSim Module or DLL, depending on what you're comfortable working with and what you are trying to do.

There is also an Http FlexScript class that you could use in a model to send requests directly to (and receive responses from) a web server:

https://docs.flexsim.com/en/22.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Http/Http.Request.html

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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