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
  • Index
  • » Users
  • » tomtom451
  • » Profile

Posts

Posts

Hi everyone,

I'm looking for a library I don't know the name but an author of a scientific article talked about it 7 years ago. It was working on that library and he said it will be free and available. The library have a better interpolation than the one implemented in the CombiTimeTable which increase a lot my CPU Time.

I note the reference to the article: "Implementation of a Modelica Library for Smooth Spline Approximation " from Jörg Ungethüm and Dirk Hülsebusch

If you have some information about the article or how to decrease the CPU time using CombiTimeTable or equivalent, I am interested.

Thank you,

Apr-04-16 14:06:40
Change the type of variable (protected or public) with a if condition
Category: Programming

Thank you,

But it is possible to change the type of the variable easily?
because we have a lot of bus and we want to be able to put them all in protected on one click to hide some informations.

Apr-04-16 13:32:12
Change the type of variable (protected or public) with a if condition
Category: Programming

Hello everyone,

I would like to know if it's possible to use a boolean to change the type protected or not of a bus?

I tried this code:

  DataCoach3D dataCoach3D(ModeProtectedActivated=ModeProtectedActivated)
    annotation (Placement(transformation(extent={{40,50},{60,70}})));
  public
  parameter Boolean ModeProtectedActivated=false;
 
    if Boolean ModeProtectedActivated then
    { protected Modelica.Icons.SignalSubBus signalSubBus annotation (Placement(transformation(extent={{-32,58},{-12,78}})))";"}
  [else
  { public Modelica.Icons.SignalSubBus signalSubBus annotation (Placement(transformation(extent={{-32,58},{-12,78}})))";"}
    ]
    end if ;



But it sent me back the following syntax error:

Error: declaration window line 16 column 5, syntax error at "if" missing { "end" "external"   }
Error: declaration window line 17 column 7, syntax error at "protected" missing "end" and missing ";" and missing EndOfFile
ERROR: 2 errors were found


Thanks you for your help and have a nice day.

  • Index
  • » Users
  • » tomtom451
  • » Profile
You are here: