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

Using Staespace block in Connection editor

Using Staespace block in Connection editor

I would like to connect a real step source block to the input of a state space block.



1. Although I assigne the parameters A,B,C, and D in the state space block it is not possible in the connection editor to connect the real step source block.



2. When copying the code from DrModelica Example 4.1 and removing the connect(step.y, stateSpace.u[1]; - line, it is not possible to graphicaly connect them again.



3. Similar operations work perfect, when trying them on a real step source block and a second order system block



I have tried to import different parts of the library.



I get messages of the type:



---- Error 30 : 08:12:44 ----

"[C:/OpenModelica1.8.0/lib/omlibrary/Modelica 3.1/Blocks/Interfaces.mo:310:7-312:26:writable] Error: Array dimension must be integer expression in nin which has type Integer

Error: Error occured while flattening model test3



or



---- Error 50 : 08:36:29 ----

"Error: Unmatched dimension in equation connect(step1.y, statespace1.u)

Error: Error occured while flattening model test10

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