Opened 8 years ago

Closed 4 years ago

#4044 closed defect (fixed)

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

Reported by: anonymous Owned by: Martin Sjölund
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 by Per Östlund, 4 years ago

Component: Third-Party LibrariesNew Instantiation
Milestone: Future1.16.0
Resolution: fixed
Status: newclosed

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.