question

Libby avatar image
0 Likes"
Libby asked Phil BoBo edited

Run FlexSim models by remote server

Hi everyone,

I have a algorithm program that output parameters and run on a Linux OS. I'm trying to find solution about the algorithm program calling the simulation model remotely and giving those parameters for FlexSim model, after simulation FlexSim will send some result data back to the algorithm program.

I've got a .bat file to start the FlexSim, but how to run it via a Linux OS?Can anyone gives me some tips or demo model?

FlexSim 19.1.1
flexsim 19.1.1
· 2
5 |100000

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

Sebastian Hemmann avatar image Sebastian Hemmann commented ·

Hi @Libby, as far as I know FlexSim is not running on another OS than Windows. Maybe you are looking for the FlexSim Webserver and run FlexSim on another machine!?

0 Likes 0 ·
Libby avatar image Libby Sebastian Hemmann commented ·

Hi,sebastian

my FlexSim model is running on Windows OS, but the algorithm program is running on a Linux OS.

I want to run FlexSim model automatically, it seems FlexSim Webserver could not satisfy requirements .

0 Likes 0 ·

1 Answer

Phil BoBo avatar image
2 Likes"
Phil BoBo answered Phil BoBo edited

You can execute FlexSim from a command line: https://answers.flexsim.com/answers/21375/view.html

How to execute command line functions on a Windows PC from a Linux PC is beyond the scope of FlexSim technical support. That's not a FlexSim question; that's a Linux question. For example: https://stackoverflow.com/questions/238013/invoking-windows-batch-file-from-linux

The easiest way to communicate with FlexSim on a different machine is to use HTTP requests to the FlexSim WebServer, and have the WebServer start instances of FlexSim and communicate with them.

See https://docs.flexsim.com/en/20.1/Reference/DeveloperAdvancedUser/Webserver/#custom

You can do a whole lot more with the FlexSim WebServer than just viewing the default page of a model from a web browser. It can facilitate any kinds of communication with FlexSim via HTTP.

5 |100000

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