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

Interactive simulation with OPC UA

Interactive simulation with OPC UA

Hi everyone,

I'm experimenting an interactive simulation with OPC UA. My main problem is that I don't know how to build a model that can have it's inputs modified. My current state: I cannot write to my model's variables, just to the simulation variables ("run" and "step").

I've built a simple RC circuit in OMEdit, with a commuting switch for capacitor charge/discharge. I just want to be able to change the switch state ("control" variable) in the client, but I receive the following error in UaExpert:

https://openmodelica.org/images/agorapro/attachments/5247/mini_uaexpert-badwrite.png

My model is this:

https://openmodelica.org/images/agorapro/attachments/5247/mini_omedit-rc.png

testOMI.mo

My version is "OpenModelica v1.11.0-dev-83-g372119f"

Edited by: brunoleos - Sep-21-16 21:41:29

Re: Interactive simulation with OPC UA

I have just solved it using an input block from the basic interface. So simple...

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