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

Simulation thru telnet not working.

Simulation thru telnet not working.

Hi everyone,

I'm runnig omc thru Ubuntu terminal with "omc +d=interactive &" and using it with telnet 127.0.0.1 29500 connection. I'm trying to run some code and simulate it. Puting in code is without problem but simulate(className) is without output. No className_res.plt ist create. I really need that. I'm starting to be hopeless....Is there someone who knows where is a problem?

root@ubuntu:~/omc-tmp# /usr/lib/omc/bin/omc +d=interactive &
[1] 3441
root@ubuntu:~/omc-tmp# telnet 127.0.0.1 29500
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

class heli input Real alfa; Real x1(start = 0); Real x2(start = 0); Real x3(start = 0); Real x4(start = 0); equation der(x1) = x2; der(x3) = x4; der(x2) = -0.65*x2 - 0.02*x4 + 5.4*alfa; der(x4) = -1.57 - 0.03*x4 + 9.8*x1 + 9.8*alfa; end heli;
Ok
Error occured building AST
Syntax Error

simulate(heli)

simulate(heli)

readFile('heli_res.plt')

what can I do?
[1:1]: error: unexpected token: what


I will be very grateful...

Re: Simulation thru telnet not working.

The answer for this was already posted here:
https://www.openmodelica.org/index.php/ … opic?id=19

Cheers,
Adrian Pop/

There are 0 guests and 0 other users also viewing this topic
You are here: