sharpie7 / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
2.29k stars 633 forks source link

Feature Request: additional JS interfaces on object sim #730

Closed TimFFischer closed 2 years ago

TimFFischer commented 2 years ago

We try to build some nice JavaScript addons to circuitjs with the given interfaces (sim.setExtVoltage, getNodeVoltage, ...). The following two features / functions would be great to have:

  1. A way to read out Ammeters. I know it's possible to emulate it via shunt and NodeVoltage, but this is kind of akward: It needs recalculation, depends on the shunt resistance, and also often requires two nodes.
  2. A way to find out all label names in the circuit (e.g. an array of all available label names). This is beneficial for analysing the circuit via JS, even when not knowing the (number of) used input and outputs.