Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » vasaie_p
  • » Profile

Posts

Posts

Jun-01-11 15:40:13
simulation time (Tn) jumping forward/backward when changing value

Hi Lisa, this bug has been solved since version 1.7.0 v9222

Best Regards,
Parham Vasaiely

Hi Filippo,

I hope the following answers will help you using the interactive capabilities of OM.

1. OMShell only generates the executable file including your model, equations, solvers and so on. This executable file can be used as non-interactive or interactive simulation runtime.
2. The generated file is similar to a server waiting for you requests.
3. Your GUI needs three communication components please see “OpenModelicaUsersGuide.pdf chapter 5.4.1 Network configuration Settings”.
By default your GUI should wait for “control operation replies” on 127.0.0.1:10500 and for “results” on 127.0.0.1:10502.

If you are receiving something but the strings are malformed your TCP/IP implementation to receive messages is not correctly implemented. If it is so and you are using C++ you can take a look at the existing source code of the interactive components from “trunk\\OpenModelica\c_runtime\interactive”
“socket_win.cpp”
“socket_unix.cpp”

For using the example client.cpp you need to copy the following files into VSC++ and to compile them:

Client.cpp
Socket.h
Socket.cpp
Socket_win.cpp
Socket_unix.cpp

regards,
Parham

  • Index
  • » Users
  • » vasaie_p
  • » Profile
You are here: