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

no output for setParameterValue

no output for setParameterValue

Hi,
I am unable to get correct result when using OMC-API setParameterValue. I tried both using Java CORBA as well as from OMShell-terminal. This is the steps in terminal:

>>>package test model mymodel parameter Real p1; parameter Real p2; end mymodel; end test;
{test}
>>>setParameterValue(test.mymodel,p1,2)
Ok

The result is ok, but when I list test, this is what I got:

>>> list(test)
"package test
  model mymodel
    parameter Real p1;
    parameter Real p2;
  end mymodel;
end test;

"

so the value is not set to 2 as it is supposed to from the previous command.

Please advise. Thanks.

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