-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force connector to wire connections to the same side #293
Comments
Do you perhaps want a layout similar to Tutorial 7 with all connectors along the left and right sides with zig-zag cables daisy-chained between them? If so, choose alternating sides for each connector in the daisy-chain, and specify all connections from the left connector via the cable to the right connector. In your use case, you might try the "in 2" connectors left, then the "out 2" and "in 1" connectors right, and finally "out 1" connectors left, but swapping left and right sides should also work. |
Many thanks for the hint @kvid ! I was not aware of the ordering importance! Do you know if the orientation of cable exit ports on the boxes could be set somehow? The cable in the question is rather a H cable than a Z in reality, and it could have added value to visualize that way. |
|
For CAN wiring purposes I was looking to genuinely force wires out of one side, does anyone know if its doable? |
@nindroz wrote:
I know what a CAN bus is, but I don't really understand what you're trying to achieve. Can you show here what you've tried, and then explain what you would like to be different. If your problem has very little in common with what was asked or suggested here, you should consider creating a new issue. |
If I guess well he is wiring the CAN bus to a node back and forth (by connecting two wires to a same pin). To describe what is done physically the wires needs to be connected on the same side to the connector not the opposite. |
@nindroz wrote:
After you've decided the left-right order of your cables and connectors, then specify connections ordered from left to right. See also point 1 in #293 (comment). |
For the CAN connection, there is no left and right for the connectors. They esssentially need to be parallell. I specifically need the green and yellow wire in the picture to be on the left of the TT_FR connector and the left of the steering connector. |
Sorry, but I don't understand which end of the TT_FRC bundle that should be connected to the TT_FR connector. This connector seems to be connected to both ends, and normally that doesn't make sense. |
@nindroz could you give the wirvize code? this may allow experimenting to look what you want. |
|
@nindroz are any of these three that what you meant? |
The last one! |
Hello, exactly what I was looking for! The daisy chain example is changing the connectors from left to right, but I think that @nindroz and me need the connectors always on the same side. I understand that we'll have to place the cable ("TT_FRC" in this case) between the connectors (in my case the "TT_FR" and "_X_3" are named "Y/T splice.1" and "Y/T splice.2"), but at some point we need the "left to left" connection as you did. Let us know how you did it please! :D Thanks! PD: vertical connections would be awesome, I did not checked if it's already possible or not. |
I did this by editing the .gv output to give a better visualisation of what @nindroz meant. |
@nindroz , I finally got it. Let me explain how I did it so everyone can solve this issue with a super basic example: "file_name".yml:
As .gv file is not generated nowadays by default we need to add With the .gv open, you have to search and modify the second connection: > fillcolor="#FFFFFF" shape=box style=filled]
edge [color="#000000:#ff0000:#000000"]
C1:e -- W1:w1:w
- W1:w1:e -- C2:w
+ W1:w1:w -- C2:w
W1 [label=< The "e" means "right", and the "w" means "left". (EDIT: "e" means East, "w" means West, this is the position where the "line" starts at the "box", check GraphViz documentation) Hope it helps! |
Yes that is basically what I did in the .gv output |
Sure @tobiasfalk , I previously asked how to do it, but ended up learning it and sharing how to do it ;) Thanks! For everybody, In the example above I changed a cable connection, but in case you want to change a connector (Splice), keep in mind there is more "info" in the .gv that has to be changed. I only could go from this: I had to change, as explained before, the "e" to "w": > fillcolor="#FFFFFF" shape=box style=filled]
edge [color="#000000:#ff0000:#000000"]
- JB3:p1r:e -- W3:w1:w
+ JB3:p1l:w -- W3:w1:w
W3:w1:e -- JB4:p1l:w
edge [color="#000000:#8000ff:#000000"]
- JB3:p2r:e -- W3:w2:w
+ JB3:p2l:w -- W3:w2:w
W3:w2:e -- JB4:p2l:w
edge [color="#000000:#ffffff:#000000"]
- JB3:p3r:e -- W3:w3:w
+ JB3:p3l:w -- W3:w3:w
W3:w3:e -- JB4:p3l:w
edge [color="#000000:#000000:#000000"]
- JB3:p4r:e -- W3:w4:w
+ JB3:p4l:w -- W3:w4:w
W3:w4:e -- JB4:p4l:w
edge [color="#000000"]
- JB3:p5r:e -- W3:ws:w
+ JB3:p5l:w -- W3:ws:w
W3:ws:e -- JB4:p5l:w
W3 [label=< And another time for the second cable in my code. Keep in mind to also change the "r" to "l", as it refers to the "numbered box", if you don't change the "r" to "l" you will get the "left" side of the "left" box: I would suggest to "redistribute/regroup" the cables and connectors prior the modification of the .gv file using this tweak. Anyone know how to tweak (override/append) the "left/right" issue inside the .yml file? |
@EloiVilalta wrote:
If what you really need, is daisy-chaining bus wires between a series of connectors, why do you require all wires connecting from the same side?
The RS485 use case you link to, can easily be implemented (similarly to tutorial04) in WireVis like this: connectors:
X:
pinlabels: [GND, B-, A+]
color: GN
J:
type: Junction
style: simple
cables:
W:
colors: [BN, YE, GN]
shield: true
connections:
-
- X.: [1-3]
- W.W1: [1-3]
- X.: [1-3]
- W.W2: [1-3]
- X.: [1-3]
-
- J.
- W1: [s]
- J.
- W2: [s]
- J. The number of connector can easily be expanded, but when the number of connector increases, this diagram gets very wide. Then I would rather recommend zig-zag daisy-chaining like in tutorial07 to obtain a more compact diagram. Electrically, it doesn't matter which of these drawing techniques are used. The connections are the same, just drawn in a different layout and order to help readability. Forcing wires around to the opposite side, like in some of the examples above, will only harm readability, IMHO. |
Thank you @kvid , my problem is that from the " bus connections" there is custom cables going to the devices, with different pinout, different colors... Anyway, I've been checking all day what GraphViz is capable of doing and you can only choose ONE direction.
The schematics had been like this since the beginning of the project, and change it now it's pretty difficult. I wanted to place the detailed cables on top of the actual schematic. Another problem I faced is that the cables will choose to go over or under the "box" depending if they start over the center or under it. Unless I put the "picture" on top and all the cables goes at the bottom, it's impossible to make it look fancy, here is the example: I'll have to make it Zig-Zag. But I'm really happy about what I've learnt today! And I'm pretty sure I'll use GraphViz more often! BTW, I'm using http://magjac.com/graphviz-visual-editor/ to edit the .gv and see the changes in real time. |
FYI: Graphviz comes with a tool called |
Hello all,
I am trying to document a H topology cable:
From the following source:
https://gist.github.com/martonmiklos/8603dcaaebea8eea07143e39b3de4fa0
It renders what I want to make, but the arranging is not quite as descriptive as it should.
Is there any way to force the +12V out 2 and GND out 2 connctors:
To force the wire entry to one side like happens on the +12V out 1 and GND out 1?
The text was updated successfully, but these errors were encountered: