Is it possible to create COM server to couple FlexSim and Matlab?

Is it possible to create COM server to couple FlexSim and Matlab?

mohamed_awad11
Explorer Explorer
21 Views
2 Replies
Message 1 of 3

Is it possible to create COM server to couple FlexSim and Matlab?

mohamed_awad11
Explorer
Explorer

[ FlexSim 22.0.1 ]

Hi,


I would like to ask if is it possible to create COM server using act actxserver command in Matlab to communicate with FlexSim?


Best regards,

Mohamed

0 Likes
Accepted solutions (1)
22 Views
2 Replies
Replies (2)
Message 2 of 3

JordanLJohnson
Autodesk
Autodesk
Accepted solution

It looks like the actxserver command in Matlab launches a COM application. FlexSim isn't a COM application, and doesn't implement a COM interface, so I don't think that particular command will help you.

But, if the goal is to connect FlexSim and Matlab, there are several other possibilities. Here are a few:

  • Both FlexSim and Matlab can use TCP sockets. You could create a model that acts as a server (meaning it accepts requests from Matlab, and also sends responses back).
  • Both FlexSim and Matlab can interact with Python. You might be able to execute python from Matlab that, in turn, executes FlexSim commands.
  • Both FlexSim and Matlab can read and write files.

Maybe one of those approaches can get you where you need to go.

.


Jordan Johnson
Principal Software Engineer
>

Message 3 of 3

mohamed_awad11
Explorer
Explorer
Thanks a million Jordan!
0 Likes