question

Mohamed A17 avatar image
0 Likes"
Mohamed A17 asked Mohamed A17 commented

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

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

FlexSim 22.0.1
servermatlabcomponent object
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

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Mohamed A17 commented

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.

· 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.

Mohamed A17 avatar image Mohamed A17 commented ·
Thanks a million Jordan!
0 Likes 0 ·