wireviz / WireViz

Easily document cables and wiring harnesses.
GNU General Public License v3.0
4.42k stars 226 forks source link

Wiring Information Query for 70 pin connector #378

Closed akikinho closed 4 months ago

akikinho commented 5 months ago

Hello Wireviz Team, There is a 70 pin connector for which the wiring information table is huge and it is difficult to read. Is there a way to format the wire information such that the wire data is condensed for such large connectors?

kvid commented 5 months ago

Please provide a YAML input example that demonstrates your issue. One commonly used function to make connectors more compact is to add hide_disconnected_pins: true.

akikinho commented 5 months ago

Hello @kvid , here is the demo file which produces errors I don't understand as I don't know software.

connectors:

  C1:
     pincount: 70
     type: Plug Housing
     subtype: male
     pins: [1,2,3,4,5,6,7,8,9,10,
     11,12,13,14,15,16,17,18,19,20,
     21,22,23,24,25,26,27,28,29,30,
     31,32,33,34,35,36,37,38,39,40,
     41,42,43,44,45,46,47,48,49,50,
     51,52,53,54,55,56,57,58,59,60,
     61,62,63,64,65,66,67,68,69,70]

   C2:
     pincount: 60
     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,24,25,26,27,28,29,30,
     31,32,33,34,35,36,37,38,39,40,
     41,42,43,44,45,46,47,48,49,50,
     51,52,53,54,55,56,57,58,59,60]

cables:

  W1:
    gauge: [1, 0.7, 0.7, 0.7, 0.7, 0.9, 0.5, 0.7, 0.5, 0.9, 0.7, 1, 1, 0.9, 0.5, 1, 0.9, 1, 0.6, 0.6, 0.7, 1, 0.7, 0.9, 0.5, 1, 0.8, 0.7, 0.9, 0.8, 0.5, 0.6, 0.6, 0.5, 0.7, 1, 0.5, 1, 1, 0.7, 0.8, 0.9, 0.7, 0.8, 0.5, 0.9, 0.9, 0.9, 1, 0.7, 0.9, 0.6, 0.5, 0.6, 0.6, 0.5, 0.7, 0.5, 0.9, 1, 0.8, 1, 0.6, 0.9, 0.7, 0.9, 0.7, 1, 0.7, 0.6, 0.6, 0.7, 0.5, 0.9, 0.5, 1, 1, 0.5, 1, 0.8, 1, 0.5, 0.9, 0.8, 0.9, 0.9, 0.9, 0.5, 0.6, 0.9, 0.9, 0.8, 0.8, 1, 0.8]
    #length: 0.2
    type: [TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL, TXL]
    # color_code: IEC
    wirecount: 70
    show_equiv: true # auto-calculate AWG equivalent
    colors: [BN, YE, BN, BU, RD, BN, GN, YE, YE, YE, BK, GN, GY, RD, YE, YE, BK, GY, YE, GY, GY, OG, BN, BN, YE, BK, YE, BN, BN, RD, BN, YE, BU, RD, YE, YE, BN, BN, GY, BK, OG, BK, BN, OG, RD, YE, GY, BN, YE, BK, YE, YE, GY, RD, YE, RD, YE, GY, YE, BN, YE, YE, BN, YE, YE, BN, BN, GY, SH, OG, YE, GY, BN, YE, OG, GN, GY, BN, YE, GY, BU, RD, YE, YE, BN, YE, YE, GN, GY, BN, YE, YE, YE, YE, RD, YE, RD, BN, BN, GY, OG, BK, YE, YE]
    shield: true # add cable shielding
    category: bundle
    wirelabels: [-,A,B,C,D,E,F,G,H,I,J,K,L,M,
    -,N,O,P,Q,R,S,T,U,V,W,X,-,-,Y,Z,-,-,A1,B1,
    -,-,-,-,C1,D1,-,-,E1,F1,G1,H1,-,-,I1,J1,K1,L1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,
    -,V1,W1,X1,Y1,Z1,A2,B2,C2]

connections:
-
    - C1: [1,2,3,4,5,6,7,8,9,10,
     11,12,13,14,15,16,17,18,19,20,
     21,22,23,24,25,26,27,28,29,30,
     31,32,33,34,35,36,37,38,39,40,
     41,42,43,44,45,46,47,48,49,50,
     51,52,53,54,55,56,57,58,59,60,
     61,62,63,64,65,66,67,68,69,70]
    - W1: [1,2,3,4,5,6,7,8,9,10,
     11,12,13,14,15,16,17,18,19,20,
     21,22,23,24,25,26,27,28,29,30,
     31,32,33,34,35,36,37,38,39,40,
     41,42,43,44,45,46,47,48,49,50,
     51,52,53,54,55,56,57,58,59,60]
    - C2: [1,2,3,4,5,6,7,8,9,10,
     11,12,13,14,15,16,17,18,19,20,
     21,22,23,24,25,26,27,28,29,30,
     31,32,33,34,35,36,37,38,39,40,
     41,42,43,44,45,46,47,48,49,50,
     51,52,53,54,55,56,57,58,59,60]
kvid commented 5 months ago

I took the liberty to edit you message, by only adding YAML code tags around your YAML input to make it easier to read. Please verify that I didn't destroy any of your YAML input in the process.

I had to make a few modifications to make WireViz accept your YAML input:

Non-critical issues:

akikinho commented 5 months ago

Thank you @kvid! I have a question. How do you display the gauge, type information beside the wire information? Is it something like show_type: true and show_gauge: true?

kvid commented 5 months ago

WireViz v0.4 only supports a common type and gauge value for all wires in the same cable/bundle - see syntax description, but #268 suggests supporting different gauges for each wire as a new future feature. However, it has not (yet?) been implemented.

akikinho commented 5 months ago

Thank you @kvid. I really hope in the future update the team implements it as it will be really helpful.

akikinho commented 5 months ago

In my opinion, both (length: <int/float>[ ])and (gauge: <int/float/str>) should be of type List?

kvid commented 5 months ago

Please join the #268 discussion and present your use case and view to contribute to the on-going suggestions there.

kvid commented 4 months ago

This issue seems to be resolved. I copied your two latest comments into #268 as they seems to belong there.