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

setComponentProperties in OMC-API docs

setComponentProperties in OMC-API docs

Hi,
I am reading OMC-API for setComponentProperties(), I am wondering what is A8 and A9, there is only definition until A7. thanks in advance.

Re: setComponentProperties in OMC-API docs

As far as I can tell, this is the signature used by Interactive.mo (only has 6 arguments):
Absyn.CREF(componentRef = class_)
Absyn.CREF(componentRef = comp_ref)
Absyn.ARRAY(arrayExp =  {Absyn.BOOL(value = finalPrefix), Absyn.BOOL(value = flowPrefix),  Absyn.BOOL(value = streamPrefix),  Absyn.BOOL(value = protected_), Absyn.BOOL(value = repl)})
Absyn.ARRAY(arrayExp = {Absyn.STRING(value = variability)})
Absyn.ARRAY(arrayExp = {Absyn.BOOL(value = dref1),Absyn.BOOL(value = dref2)})
Absyn.ARRAY(arrayExp = {Absyn.STRING(value = causality)})

Re: setComponentProperties in OMC-API docs

The OMC-API document is a bit old. Have a look into the .mos files here:
https://openmodelica.ida.liu.se/svn/Ope … nteractive
user: anonymous
pass: none <-- write none here
They contain tests fro the Interactive OMC API.

Cheers,
Adrian Pop/

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