WireViz icon indicating copy to clipboard operation
WireViz copied to clipboard

[query] Shielding 2 separate wires

Open akikinho opened this issue 1 year ago • 3 comments

Hello, I would like to know how to shield 2 separate wires connected to 2 pins into a cable? I attempted it by using tweak, but I am not so sure.

shield

Thank you and Best Regards,

akikinho avatar Jul 17 '24 15:07 akikinho

This seems to be a duplicate of #330. If you agree, please join that discussion, and close this issue as not planned. If not, then explain here what makes this issue different.

What is shown in the image you included above?

kvid avatar Jul 17 '24 18:07 kvid

Hello @kvid, here is the yaml input file. The shield has to be around 10A and 11A

connectors:
    CX:
        pincount: 23
        type: Plug Housing
        subtype: female
        pins: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]
        hide_disconnected_pins: true
    
    S: &splice  # generic autogenerated splice
        style: simple
        type: splice
        show_name: true
        
cables:
    WIRE SPLICE 10_A:
        gauge: 1 
        #length: 0.2
        type: TXL
        # color_code: IEC
        wirecount: 3
        show_equiv: true # auto-calculate AWG equivalent
        colors: [GN,GN,GN]
        shield: true # add cable shielding
        category: bundle
        wirelabels: [10B,10H,10A]
        
    WIRE SPLICE 11_A:
        gauge: 1 
        #length: 0.2
        type: TXL
        # color_code: IEC
        wirecount: 3
        show_equiv: true # auto-calculate AWG equivalent
        colors: [YE,YE,YE]
        shield: true # add cable shielding
        category: bundle
        wirelabels: [11B,11H,11A]
        
connections:
-
    - CX: [5]
    - WIRE SPLICE 10_A: [3]   #10A
    - S.SPLICE 10_A
-
    - CX: [6]
    - WIRE SPLICE 11_A: [3]   #11A
    - S.SPLICE 11_A

akikinho avatar Jul 17 '24 22:07 akikinho

@akikinho wrote:

Hello @kvid, here is the yaml input file. The shield has to be around 10A and 11A [...]

The YAML input you provided above is perfectly valid for v0.4.1 and produces a harnes with two shielded bundles of 3 wires each where the shield normally is interpreted to contain all 3 wires, but it's possible to add notes that explain such details differently.

If you expect a way to specify which wire(s) are shielded individually or together with some subset of other wire(s), and visualize this somehow, then your request is a duplicate of #330, and my recommendation above still holds. If this is not what you expect, then you need to describe in detail the differences between your expected output and the output using the currently latest version. A sketch where you hand draw on top of the generated output might be useful.

PS: I still don't understand what is shown in the image you included in the original message above?

PPS: A few possible YAML simplifications:

  • Your CX.pins attribute is redundant because the default value is [1-23] due to your CX.pincount: 23
  • Your colors: [GN,GN,GN] and colors: [YE,YE,YE] attributes can be simplified to colors: [GN] and colors: [YE] respectively and they will each be triplicated due to your wirecount: 3 in both bundles
  • Update: As an alternative to the latter point above, you can keep the colors attributes unchanged and remove the wirecount attributes because they will then be computed from the number of colors.

kvid avatar Jul 19 '24 22:07 kvid