Page 1 of 1

Simulation using a single interface with conjugated

PostPosted: Tue Mar 26, 2019 1:53 am
by ivan.baeriswyl@hefr.ch
Hello,

I am trying to establish a flow between two (sub-)blocks using proxy connectors. I would like to set a value of an Integer in the block "A" and use it in the block "B".
However, so far, I only managed to do it either by creating two distinct interfaces (one with in-flow in block "B", one with out-flow in block "A"), or by using one interface (with an inout-flow).

bdd.png


I would like to have a one-way directed flow from A to B, and to be able to use one interface only (with in or out flow) by using its conjugated, and make the simulation work. Is it possible ? Does it make sense ?

P.S. A dumb testing scenario

act.png


Thank you in advance for your time,

Ivan

Re: Simulation using a single interface with conjugated

PostPosted: Wed Sep 25, 2019 12:13 am
by ivan.baeriswyl@hefr.ch
I am the only one being interested by this ? Or am I tackling it wrong? Any help/hint would be greatly appreciated.

Best,
Ivan

Re: Simulation using a single interface with conjugated

PostPosted: Thu Mar 26, 2020 3:12 am
by JuS
Hello Ivan,

I have the same problem and I'm searching for a solution as well.

What works so far (I am only using the proxy port, no full port):
- Create two blocks, each having a proxy port.
- Create one interface (in-flow property).
- Use the interface on port A (Block A) and port B (Block B)
- switch the direction of the interface in port B ("is Conjugated" check box in the specifications of port B)
- Connect "value 1" in ibd for block A with the flow property in port A
- do the same for "value 2" in block B and port B

So far, so good.
Using conjugated interfaces/ports works. You only need one interface. The problem, in my opinion, lies in the connector.

What I tried:
1. Binding connector between ports -> This ignores the set direction and all values are the same. It doesn't matter which value (1 or 2) is changed, everything is set to the same value.
2. normal connector between ports -> The value is transferd to the flow property. No Value is transferd between port A and B. It doesn't matter in which block the value is set first.
3. normal connector between ports with item flow (as seen in multiple pictures in the documentation) -> changes nothing compared to case 2

If you solved your the problem already, please contact me, or post you solution.
I hope the support staff can solve this. I can't understand why we are the only ones with this problem.
At the moment, I have to live with case 1, where everything is set, diregarding direction.

Kind regards,
Justus