Opened 16 years ago

Closed 10 years ago

#1053 closed defect (fixed)

[Tiller] No constant binding for variable num (problem with record?) (from MathCore)

Reported by: krsta Owned by: krsta
Priority: high Milestone:
Component: Backend Version:
Keywords: Cc: krsta

Description

Build fails when simulating the model BookExamples.Chapter5.TestComplexWave. I do not really understand the error message, but it says "No constant binding for variable num in scope BookExamples.Chapter5.TestComplexWave.Data".

As data is a record I guess that the error might have something to do with this.

record Data
      constant Integer num "Number of waves";
    Real a[num] "Wave amplitudes";
    Modelica.SIunits.Frequency f[num] "Wave frequencies";
    Modelica.SIunits.Angle phase[num] "Wave phase offset";
  end Data;

Attachments (1)

TestComplexWaveTotal.mo (32.9 KB ) - added by Jan Brugård 15 years ago.
This is the example from Tillers book.

Download all attachments as: .zip

Change History (3)

by Jan Brugård, 15 years ago

Attachment: TestComplexWaveTotal.mo added

This is the example from Tillers book.

comment:2 by Per Östlund, 10 years ago

Cc: krsta, → krsta
Component: Backend
Resolution: fixed
Status: assignedclosed

This seems to have been fixed some time ago.

Note: See TracTickets for help on using tickets.