Copy Modules question

 

Maybe my question is stupid, but I do not understand the usefulness of copy modules.

We can have many cables from an out pin. Is that correct?
If it is, then I do not see why we would need a copy module since we can create as many cables as we like from an out pin.

If it is not, which type of pins do not allow many out cables?

Thank you in advance

   buffos

 
Profile Image
Zoltan@Aximmetry
  -  

Hi,

They can play 4 different roles.


1) Helping the arrangement of the flow graph.  E.g. you want to lead a signal to multiple modules, but all of them are at a far point of the graph. In this case you can use a copy to only lead a single wire to the far area and split it from there to the target modules.  Or sometimes they can simple help the "cable management".



2) Leading an exposed input of a compound to multiple modules.  (Exposion is appear as a cable, but it is not a real connection, it merely indicates the exposing of a pin to the outside world,  so it cannot be led to multiple targets.)



3) Data type conversion when exposing a pin from a compound.  E.g. you want a scalar input for the compound, but you want to lead it directly to a math module that only have a vector version.


4) Define a default value for a pin that is exposed or added to a pin collector. (When you execute Reset to the pin it is set to the specified value.)

  

 
Profile Image
HyperTony
  -  

Hi 

I still have question regarding below item:

2) Leading an exposed input of a compound to multiple modules.(Exposion is appear as a cable, but it is not a real connection, it merely indicates the exposing of a pin to the outside world,  so it cannot be led to multiple targets.)

  • what do you mean it's not a real connection?  Do you mean that no input can be send through this connection?
  • why it can't be led to multiple targets?  Do you mean that the input pin can't be led to multiple targets? 


4) Define a default value for a pin that is exposed or added to a pin collector.

Does it mean that if there is no custom input, it will automatically select the default value? 

 
Profile Image
Eifert@Aximmetry
  -  

Hi Tony,

Yes, you can only connect the input pin to only one target module. This fact is visually represented by their lines being dashed (), while the ones that can be connected to multiple targets are continuous lines ().

You could think of the compound's input pin as a reference to a pin inside of the compound and not an actual connection. The actual connection is outside of a module leading to its pin:

Also, this is true about the output pins inside the compound (of being a reference and the dashed lines).


The default value doesn't mean that it will overwrite any of the values.
It will just enable resetting these values like this:

Warmest regards,

;