Opened 5 years ago

Last modified 5 years ago

#5543 new defect

OMEdit does not check if added connections are valid

Reported by: Francesco Casella Owned by: Adrian Pop
Priority: blocker Milestone: 2.0.0
Component: NF API Version:
Keywords: Cc: Adrian Pop, Per Östlund

Description

When connecting any two ports, OMEdit should check that the two connectors are compatible. This is currently not the case: if you connect one electrical pin of the attached example with the thermal port of the thermal capacitor, the connection is accepted.

What is even more problematic is that the resulting model can be compiled, but this is the subject of another ticket, see #5542

Attachments (1)

TestConnection.mo (483 bytes ) - added by Francesco Casella 5 years ago.

Download all attachments as: .zip

Change History (3)

by Francesco Casella, 5 years ago

Attachment: TestConnection.mo added

comment:1 by Adeel Asghar, 5 years ago

Cc: Adrian Pop Per Östlund added

We use to have that check but was really slow for real models since we just instantiates the model to find out if the connection is valid or not. Maybe with the new frontend it is possible to have a new API to check this.

comment:2 by Francesco Casella, 5 years ago

Component: OMEditNF API
Milestone: 1.14.02.0.0
Owner: changed from Adeel Asghar to Adrian Pop

Now that #5542 is fixed, this feature is less critical, because the model will eventually be rejected with some diagnostics.

Would be good to have, but I think #2081 and #2661 have much higher priority.

Note: See TracTickets for help on using tickets.