Opened 8 years ago

Closed 3 years ago

#4044 closed defect (fixed)

Invalid equations in ThermoSysPro.InstrumentationAndControl.Blocks.Discret.FctTrans

Reported by: anonymous Owned by: sjoelund.se
Priority: high Milestone: 1.16.0
Component: New Instantiation Version:
Keywords: ThermoSysPro Cc:

Description

According to Modelica spec 3.3.1, section 8.3.5.2 "Restrictions on Equations within When-Equations" the equation section

  when sample(SampleOffset, SampleInterval) then
    [x; xn] = [x1; pre(x)];
    [u.signal] = transpose([a])*[x1; pre(x)];
    [y.signal] = transpose([zeros(na - nb, 1); b])*[x1; pre(x)];
  end when;

from ThermoSysPro.InstrumentationAndControl.Blocks.Discret.FctTrans is invalid Modelica.

Change History (1)

comment:1 Changed 3 years ago by perost

  • Component changed from Third-Party Libraries to New Instantiation
  • Milestone changed from Future to 1.16.0
  • Resolution set to fixed
  • Status changed from new to closed

The new frontend now gives an error as expected:

[FctTrans.mo:26:5-26:27:writable] Error: Invalid left-hand side of when-equation: [x; xn]
Note: See TracTickets for help on using tickets.