Difference between revisions of "Wiring Editor Testing"

From Open Source Controls Wiki
Jump to navigation Jump to search
Line 56: Line 56:
   "nodeDataArray": [],
   "nodeDataArray": [],
   "linkDataArray": []}
   "linkDataArray": []}
</pre>
<pre class="wikidiagram" id="BEMS_Hat" style="display:none">
{ "class": "GraphLinksModel",
  "copiesArrays": true,
  "copiesArrayObjects": true,
  "linkFromPortIdProperty": "fromPort",
  "linkToPortIdProperty": "toPort",
  "nodeDataArray": [
{"key":"node","name":"BEMS Hat","fill":"palegreen","image":"/images/c/c1/C2a.svg","leftArray":[{"portId":"left0","portColor":"#000000","figure":"Output"},{"portId":"left1","portColor":"#00ff00","figure":"Input"},{"portId":"left2","portColor":"#000000","figure":"Output"},{"portId":"left3","portColor":"#00ff00","figure":"Input"},{"portId":"left4","portColor":"#000000","figure":"Output"},{"portId":"left5","portColor":"#00ff00","figure":"Input"},{"portId":"left6","portColor":"#000000","figure":"Output"},{"portId":"left7","portColor":"#00ff00","figure":"Input"},{"portId":"left8","portColor":"#000000","figure":"Output"},{"portId":"left9","portColor":"#fffffe","figure":"Input"},{"portId":"left10","portColor":"#000000","figure":"Output"},{"portId":"left11","portColor":"#fffffe","figure":"Input"},{"portId":"left12","portColor":"#000000","figure":"Output"},{"portId":"left13","portColor":"#fffffe","figure":"Input"},{"portId":"left14","portColor":"#000000","figure":"Output"},{"portId":"left15","portColor":"#fffffe","figure":"Input"},{"portId":"left16","portColor":"#000000","figure":"Output"},{"portId":"left17","portColor":"#00ff00","figure":"Input"},{"portId":"left18","portColor":"#000000","figure":"Output"},{"portId":"left19","portColor":"#00ff00","figure":"Input"},{"portId":"left20","portColor":"#000000","figure":"Output"},{"portId":"left21","portColor":"#00ff00","figure":"Input"},{"portId":"left22","portColor":"#000000","figure":"Output"},{"portId":"left23","portColor":"#00ff00","figure":"Input"}],"topArray":[{"portColor":"#ffc900","portId":"top01","figure":"Output"},{"portColor":"#ffc900","portId":"top02","figure":"Output"},{"portColor":"#ffc900","portId":"top03","figure":"Output"},{"portId":"top1","portColor":"#000000","figure":"Output"},{"portId":"top2","portColor":"#e88600","figure":"Input"},{"portId":"top3","portColor":"#000002","figure":"Input"},{"portColor":"#ffffff","portId":"top4"},{"portColor":"#ffffff","portId":"top5"}],"bottomArray":[{"portColor":"#000000","portId":"bottom0","figure":"Output"},{"portId":"bottom1","portColor":"#00ffff","figure":"Input"},{"portId":"bottom2","portColor":"#000000","figure":"Output"},{"portId":"bottom3","portColor":"#00ffff","figure":"Input"},{"portId":"bottom4","portColor":"#000000","figure":"Output"},{"portId":"bottom5","portColor":"#00ffff","figure":"Input"},{"portId":"bottom6","portColor":"#000000","figure":"Output"},{"portId":"bottom7","portColor":"#00ffff","figure":"Input"},{"portId":"bottom8","portColor":"#000000","figure":"Output"},{"portId":"bottom9","portColor":"#40aceb","figure":"Input"},{"portId":"bottom10","portColor":"#000000","figure":"Output"},{"portId":"bottom11","portColor":"#40aceb","figure":"Input"},{"portId":"bottom12","portColor":"#000000","figure":"Output"},{"portId":"bottom13","portColor":"#40aceb","figure":"Input"},{"portId":"bottom14","portColor":"#000000","figure":"Output"},{"portId":"bottom15","portColor":"#40aceb","figure":"Input"},{"portId":"bottom16","portColor":"#bf6ae3","figure":"Output"},{"portId":"bottom17","portColor":"#bf6ae3","figure":"Input"},{"portId":"bottom18","portColor":"#bf6ae3","figure":"Output"},{"portId":"bottom19","portColor":"#bf6ae3","figure":"Output"},{"portId":"bottom20","portColor":"#bf6ae3","figure":"Input"},{"portId":"bottom21","portColor":"#bf6ae3","figure":"Output"}],"rightArray":[{"portColor":"#000000","portId":"right0","figure":"Circle"},{"portColor":"#888891","figure":"Circle","portId":"right1"},{"portId":"right2","portColor":"#888890","figure":"Circle"},{"portId":"right3","portColor":"#ff0000","figure":"Circle"},{"portId":"right4","portColor":"#888889","figure":"Circle"},{"portId":"right5","portColor":"#888888","figure":"Circle"},{"portId":"right6","portColor":"#ddddba","figure":"Circle"},{"portId":"right7","portColor":"#ddddbb","figure":"Circle"},{"portId":"right8","portColor":"#ffff00","figure":"Output"},{"portId":"right9","portColor":"#000000","figure":"Output"},{"portId":"right10","portColor":"#ffff00","figure":"Output"},{"portId":"right11","portColor":"#000000","figure":"Output"},{"portId":"right12","portColor":"#ffff00","figure":"Output"},{"portId":"right13","portColor":"#000000","figure":"Output"},{"portId":"right14","portColor":"#ffff00","figure":"Output"},{"portId":"right15","portColor":"#000000","figure":"Output"},{"portId":"right16","portColor":"#40aceb","figure":"Output"},{"portId":"right17","portColor":"#ff0000","figure":"Output"},{"portId":"right18","portColor":"#40aceb","figure":"Output"},{"portId":"right19","portColor":"#ff0000","figure":"Output"},{"portId":"right20","portColor":"#40aceb","figure":"Output"},{"portId":"right21","portColor":"#ff0000","figure":"Output"},{"portId":"right22","portColor":"#40aceb","figure":"Output"},{"portId":"right23","portColor":"#ff0000","figure":"Output"}],"loc":"422.90625 -96.625","size":"231 252"},
{"name":"Sticky Note","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[{"portId":"left0","portColor":"#ffffff"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"note","size":"150 150","loc":"788.1009681339939 -275.12413793680145"},
{"name":"PWM Inputs","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffffff"}],"bottomArray":[],"key":"PWM","size":"150 150","loc":"420.4534983620399 268.70151708642436"},
{"name":"NTC 10K\nThermister\nInputs","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#ffffff"}],"topArray":[],"bottomArray":[],"key":"NTC10K","size":"150 150","loc":"-10.126289341254164 -274.4408940047374"},
{"name":"Universal Inputs\nCan take either:\nNTC1K\nNTC10K\n0-10V Input\n100Hz Pulsed Input\nVolt-Free Contact","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#ffffff"}],"topArray":[],"bottomArray":[],"key":"note3","size":"150 173","loc":"-15.218237387098569 -101.97988160079979"},
{"name":"NTC 10K\nThermister\nInputs","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#ffffff"}],"topArray":[],"bottomArray":[],"key":"NTC10K2","size":"150 150","loc":"-13.126289341254164 77.55910599526317"},
{"name":"100Hz Pulsed\nInputs, or\nVolt-Free \nContacts","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffffff"}],"bottomArray":[],"key":"PWM2","size":"150 150","loc":"213.83745347157097 271.1124646498607"},
{"name":"Change-Over\nRelays\n10A 24V","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffffff"},{"portId":"top1","portColor":"#ffffff"}],"bottomArray":[],"key":"PWM22","size":"150 150","loc":"595.7422153763337 270.16008369747976"}
],
  "linkDataArray": [
{"from":"note","to":"node","fromPort":"left0","toPort":"right0","points":[703.8509681339939,-275.12413793680145,693.8509681339939,-275.12413793680145,625.7536090669969,-275.12413793680145,625.7536090669969,-217.375,561.65625,-217.375,547.65625,-217.375],"thickness":1,"dash":null},
{"from":"note","to":"node","fromPort":"left0","toPort":"right3","points":[703.8509681339939,-275.12413793680145,693.8509681339939,-275.12413793680145,625.7536090669969,-275.12413793680145,625.7536090669969,-185.875,585.65625,-185.875,547.65625,-185.875],"dash":null,"thickness":1},
{"from":"PWM","to":"node","fromPort":"top0","toPort":"bottom9","points":[420.4534983620399,184.45151708642436,420.4534983620399,170.45151708642436,420.4534983620399,117.2574314262854,407.15625,117.2574314262854,407.15625,144.625,407.15625,38.625],"dash":null,"thickness":1},
{"from":"PWM","to":"node","fromPort":"top0","toPort":"bottom11","points":[420.4534983620399,184.45151708642436,420.4534983620399,174.45151708642436,420.4534983620399,117.2574314262854,428.15625,117.2574314262854,428.15625,140.625,428.15625,38.625],"dash":null,"thickness":1},
{"from":"PWM","to":"node","fromPort":"top0","toPort":"bottom13","points":[420.4534983620399,184.45151708642436,420.4534983620399,174.45151708642436,420.4534983620399,117.2574314262854,449.15625,117.2574314262854,449.15625,156.625,449.15625,38.625],"dash":null,"thickness":1},
{"from":"PWM","to":"node","fromPort":"top0","toPort":"bottom15","points":[420.4534983620399,184.45151708642436,420.4534983620399,174.45151708642436,420.4534983620399,117.2574314262854,470.15625,117.2574314262854,470.15625,172.625,470.15625,38.625],"dash":null,"thickness":1},
{"from":"NTC10K","to":"node","fromPort":"right0","toPort":"left1","points":[74.12371065874584,-274.4408940047374,84.12371065874584,-274.4408940047374,180.24515179423352,-274.4408940047374,180.24515179423352,-206.875,276.15625,-206.875,298.15625,-206.875],"thickness":1},
{"from":"NTC10K","to":"node","fromPort":"right0","toPort":"left3","points":[74.12371065874584,-274.4408940047374,84.12371065874584,-274.4408940047374,180.24515179423352,-274.4408940047374,180.24515179423352,-185.875,260.15625,-185.875,298.15625,-185.875],"thickness":1},
{"from":"NTC10K","to":"node","fromPort":"right0","toPort":"left5","points":[74.12371065874584,-274.4408940047374,84.12371065874584,-274.4408940047374,180.13998032937292,-274.4408940047374,180.13998032937292,-164.875,244.15625,-164.875,298.15625,-164.875],"thickness":1},
{"from":"NTC10K","to":"node","fromPort":"right0","toPort":"left7","points":[74.12371065874584,-274.4408940047374,84.12371065874584,-274.4408940047374,180.24515179423352,-274.4408940047374,180.24515179423352,-143.875,228.15625,-143.875,298.15625,-143.875],"thickness":1},
{"from":"note3","to":"node","fromPort":"right0","toPort":"left9","points":[69.03176261290164,-101.97988160079976,83.03176261290164,-101.97988160079976,235.43892460760458,-101.97988160079976,235.43892460760458,-122.875,176.15625,-122.875,298.15625,-122.875],"thickness":1},
{"from":"note3","to":"node","fromPort":"right0","toPort":"left11","points":[69.03176261290164,-101.97988160079976,79.03176261290164,-101.97988160079976,153.5940063064508,-101.97988160079976,153.5940063064508,-101.875,196.15625,-101.875,298.15625,-101.875],"thickness":1},
{"from":"note3","to":"node","fromPort":"right0","toPort":"left13","points":[69.03176261290164,-101.97988160079976,79.03176261290164,-101.97988160079976,235.43892460760458,-101.97988160079976,235.43892460760458,-80.875,180.15625,-80.875,298.15625,-80.875],"thickness":1},
{"from":"note3","to":"node","fromPort":"right0","toPort":"left15","points":[69.03176261290164,-101.97988160079976,79.03176261290164,-101.97988160079976,235.1633335842996,-101.97988160079976,235.1633335842996,-59.875,164.15625,-59.875,298.15625,-59.875],"thickness":1},
{"from":"NTC10K2","to":"node","fromPort":"right0","toPort":"left17","points":[71.12371065874584,77.55910599526317,85.12371065874584,77.55910599526317,178.63998032937292,77.55910599526317,178.63998032937292,-38.875,240.15625,-38.875,298.15625,-38.875],"thickness":1},
{"from":"NTC10K2","to":"node","fromPort":"right0","toPort":"left19","points":[71.12371065874584,77.55910599526317,85.12371065874584,77.55910599526317,178.51351659027998,77.55910599526317,178.51351659027998,-17.875,256.15625,-17.875,298.15625,-17.875],"thickness":1},
{"from":"NTC10K2","to":"node","fromPort":"right0","toPort":"left21","points":[71.12371065874584,77.55910599526317,85.12371065874584,77.55910599526317,178.51351659027998,77.55910599526317,178.51351659027998,3.125,272.15625,3.125,298.15625,3.125],"thickness":1},
{"from":"NTC10K2","to":"node","fromPort":"right0","toPort":"left23","points":[71.12371065874584,77.55910599526317,85.12371065874584,77.55910599526317,178.94981327789083,77.55910599526317,178.94981327789083,24.125,288.15625,24.125,298.15625,24.125],"thickness":1},
{"from":"PWM2","to":"node","fromPort":"top0","toPort":"bottom1","points":[213.83745347157097,186.86246464986073,213.83745347157097,176.86246464986073,213.83745347157097,134.74373232493036,323.15625,134.74373232493036,323.15625,60.625,323.15625,38.625],"thickness":1},
{"from":"PWM2","to":"node","fromPort":"top0","toPort":"bottom3","points":[213.83745347157097,186.86246464986073,213.83745347157097,176.86246464986073,213.83745347157097,134.44700252542646,344.15625,134.44700252542646,344.15625,76.625,344.15625,38.625],"thickness":1},
{"from":"PWM2","to":"node","fromPort":"top0","toPort":"bottom5","points":[213.83745347157097,186.86246464986073,213.83745347157097,176.86246464986073,213.83745347157097,134.44700252542646,365.15625,134.44700252542646,365.15625,92.625,365.15625,38.625],"thickness":1},
{"from":"PWM2","to":"node","fromPort":"top0","toPort":"bottom7","points":[213.83745347157097,186.86246464986073,213.83745347157097,176.86246464986073,213.83745347157097,134.75465519896966,386.15625,134.75465519896966,386.15625,108.625,386.15625,38.625],"thickness":1},
{"from":"PWM22","to":"node","fromPort":"top0","toPort":"bottom16","points":[590.4922153763337,185.91008369747976,590.4922153763337,171.91008369747976,590.4922153763337,132.52730552625934,480.65625,132.52730552625934,480.65625,88.625,480.65625,38.625],"thickness":1},
{"from":"PWM22","to":"node","fromPort":"top0","toPort":"bottom17","points":[590.4922153763337,185.91008369747976,590.4922153763337,171.91008369747976,590.4922153763337,132.52730552625934,491.15625,132.52730552625934,491.15625,80.625,491.15625,38.625],"thickness":1},
{"from":"PWM22","to":"node","fromPort":"top0","toPort":"bottom18","points":[590.4922153763337,185.91008369747976,590.4922153763337,171.91008369747976,590.4922153763337,132.26754184873988,501.65625,132.26754184873988,501.65625,72.625,501.65625,38.625],"thickness":1},
{"from":"PWM22","to":"node","fromPort":"top1","toPort":"bottom19","points":[600.9922153763337,185.91008369747976,600.9922153763337,163.91008369747976,600.9922153763337,116.26754184873988,512.15625,116.26754184873988,512.15625,64.625,512.15625,38.625],"thickness":1},
{"from":"PWM22","to":"node","fromPort":"top1","toPort":"bottom20","points":[600.9922153763337,185.91008369747976,600.9922153763337,163.91008369747976,600.9922153763337,116.37902039911012,522.65625,116.37902039911012,522.65625,56.625,522.65625,38.625],"thickness":1},
{"from":"PWM22","to":"node","fromPort":"top1","toPort":"bottom21","points":[600.9922153763337,185.91008369747976,600.9922153763337,163.91008369747976,600.9922153763337,116.37902039911012,533.15625,116.37902039911012,533.15625,48.625,533.15625,38.625],"thickness":1}
]}
</pre>
</pre>



Revision as of 10:21, 26 June 2022

Work In progress

  • Labels on wires. Will be draggable for positioning and can be used primarily to number (reference) individual wires. In controls wiring these would be the id tags on wires.
    • Draggable to any point along wire
    • Include a wire colour indicator
    • Is it possible to optionally have two labels, with one at each end?
  • Menu for editing wire colour, width, arrows and type (solid/dashed/dotted). Can you have a green/yellow (earth) dashed line?
  • Port colours updated to a fuller list to match scale.
  • Ports currently have a side, an order, and a colour (color). Wiki page to include JSON that describes ports in more detail, adding attributes. These can include a port type (portType) as well as compatible port types (compatibleWith) used to check wires are wired to compatible ports (so you can't wire a 24V to a GND without raising a warning).
  • Add a sidebar palette with standard devices.
    • Slider categories for electrical, mechanical etc.
    • Should be able to load custom palettes from wiki page JSON





Testing 2


Images

Controller Layout
Controller Layout

Rad.svg