Opened 4 years ago

Last modified 4 years ago

#6382 new defect

External Interfacing of Models

Reported by: harish.kulambi@… Owned by: Adeel Asghar
Priority: high Milestone: NeedsInput
Component: OMEdit Version: 1.16.2
Keywords: Cc:

Description

Please find the package attached.
The aim is to perform addition of two numbers using an adder model.
In order to have an external model to contain all the inputs and outputs of the system a "Interface" block is created.

However the system accounts for two additional variables since maybe the "input" keywords are accounted in the variables section.
To the contrary of above if the Interface is done within the main model itself the system does not count the " input" variables.
https://drive.google.com/drive/folders/1Bc82t-yHF7GjjmZS0_N9p2_5hbHgWQQD
Please let me know more about this or any better means to handle the same

Attachments (6)

Adder_withoutInterface.png (153.6 KB ) - added by anonymous 4 years ago.
Adder_withoutInterface.2.png (153.6 KB ) - added by anonymous 4 years ago.
Adder_withInterface.png (157.8 KB ) - added by anonymous 4 years ago.
Interface.png (159.8 KB ) - added by anonymous 4 years ago.
Adder.zip (1.5 KB ) - added by harish.kulambi@… 4 years ago.
Adder.2.zip (1.5 KB ) - added by harish.kulambi@… 4 years ago.

Download all attachments as: .zip

Change History (8)

by anonymous, 4 years ago

Attachment: Adder_withoutInterface.png added

by anonymous, 4 years ago

by anonymous, 4 years ago

Attachment: Adder_withInterface.png added

by anonymous, 4 years ago

Attachment: Interface.png added

comment:1 by Francesco Casella, 4 years ago

Would you mind attaching the code also?

comment:2 by Francesco Casella, 4 years ago

Never mind, that's not necessary.

Why are you declaring a, b, and c as inputs and outputs? The are not, they are just internal variables of your interface model, which are bound to the actual inputs and outputs by equations. Output is no big deal, but input means you expect to later give the variable a binding in a binding equation, which I understand is not what you want.

I guess everything will be OK if you remove those input and output prefixes.

by harish.kulambi@…, 4 years ago

Attachment: Adder.zip added

by harish.kulambi@…, 4 years ago

Attachment: Adder.2.zip added
Note: See TracTickets for help on using tickets.