Git Product home page Git Product logo

Comments (6)

markaren avatar markaren commented on September 3, 2024 1

Hi, if the idea is to run the model in a separate processor localhost, do this:

cosim run-single "proxyfmu://localhost?file=MyModel.fmu"

That should work, and proxyfmu_booter is not needed.

I see, however, that this executable is not shipped with cosim cli 0.7.1, but you could fetch it from 0.7.0 release if you need it (to host the model on a different location than localhost).

However, the error you get suggest that cosim cli is built without proxyfmu support. I tested the release of cosim CLI 0.7.1 just now, and that worked.

from proxy-fmu.

markaren avatar markaren commented on September 3, 2024 1

Ok, it's been a long time since I worked on this. It seems I was wrong. The FMU needs to be located on the PC that runs the CLI. It is then transmitted to the booter application.

And to answer your initial question regarding the booter. The answer is that the booter no longer exists. proxyfmu is the only executable needed. To use it as a remote host, use the command:

proxyfmu boot --port<port>

from proxy-fmu.

vegetableno1 avatar vegetableno1 commented on September 3, 2024

Thank you for your help. With your assistance, I have successfully run cosim CLI 0.7.0 release. However, I have encountered another issue now. I want to try using distributed devices for co-simulation.

Scenario:

One host and one laptop, with the host connected via Ethernet and the laptop via WiFi. Their IP addresses in the local network are 192.168.2.243 and 192.168.2.185 respectively. After disabling the firewall, they can ping each other.
Both devices have started the proxyfmu_booter (obtained from cosim 0.7.0), using the dp ship example(in demo cases master), and configured OspStructureStructure.xml. NLPobserver.fmu is obtained from 192.168.2.185.
<Simulator name="Observer" source="proxyfmu://192.168.2.185:1234?file=file:///C:\Users\vone\Downloads\demo-cases-master\dp-ship\NLPobserver.fmu"/>

Running

in the terminal of 192.168.2.243

.\cosim.exe run C:\Users\Administrator\Downloads\cosim_file\dp-ship\proxyfmu\OspSystemStructure.xml --output-dir=../output -v

Error

encountered problems on 192.168.2.243.

error: Bad file: No such file: C:\Users\vone\Downloads\demo-cases-master\dp-ship\NLPobserver.fmu

from proxy-fmu.

markaren avatar markaren commented on September 3, 2024

If I remember correctly, NLPobserver.fmu needs to be located on the other computer (with the booter). You likely also need to use a relative path for the name. So try placing the FMU together with the booter.

<Simulator name="Observer" source="proxyfmu://192.168.2.185:1234?file=NLPobserver.fmu"/>

from proxy-fmu.

vegetableno1 avatar vegetableno1 commented on September 3, 2024

Thank you! I have followed your suggestion, but here is the problem i have occured:
I copied the files needed to D:, and run cosim.
192.168.2.243
image
192.168.2.185
image
At the same time, I can run other localhost test cases on two different computers, proving that there is no issue with cosim cli and proxyfmu. How can I solve this distributed co-simulation problem?

from proxy-fmu.

vegetableno1 avatar vegetableno1 commented on September 3, 2024

Thank you! Have solved the problem with your help, now I can run Cosimulation distributedly^ ^

from proxy-fmu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.