Opened 4 years ago
Last modified 4 years ago
#6382 new defect
External Interfacing of Models
Reported by: | 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.
Please let me know more about this or any better means to handle the same
Attachments (6)
Change History (8)
by , 4 years ago
Attachment: | Adder_withoutInterface.png added |
---|
by , 4 years ago
Attachment: | Adder_withoutInterface.2.png added |
---|
by , 4 years ago
Attachment: | Adder_withInterface.png added |
---|
by , 4 years ago
Attachment: | Interface.png added |
---|
comment:1 by , 4 years ago
comment:2 by , 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 , 4 years ago
by , 4 years ago
Attachment: | Adder.2.zip added |
---|
Would you mind attaching the code also?