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

CombiTable1D

CombiTable1D

Hello,

i do not understand how to use the CombiTable1D.
With the following code the output is allways equal to the input.
What is wrong?

class table
  parameter Real u = 2.0;
  Real y;
Modelica.Blocks.Tables.CombiTable1D combiTable1D2(columns = 1:1, smoothness = Modelica.Blocks.Types.Smoothness.LinearSegments, table = [0, 0; 1, 1; 2, 4; 4, 16], tableOnFile = false);

equation
  combiTable1D2.u[1] = u;
  combiTable1D2.y[1] = y;

 
annotation(uses(Modelica(version = "3.2.2")));end table;

There are 0 guests and 0 other users also viewing this topic