// see https://docs.flux.ai/simulator/potentiometer
const terminals = [];
terminals[0] = flux.getNodeById("b2a36906-81c0-7294-805e-0d600dff7434");
terminals[1] = flux.getNodeById("90fa81b7-48fb-3192-9a89-b61f80600fe7");
terminals[2] = flux.getNodeById("c6f31bca-f30d-e32e-9050-054fe7458d73");
flux.on("setup", () => {
flux.simulationModel = {
type: "potentiometer",
map_input_one_to_terminal_uid: terminals[0]?.uid,
map_input_two_to_terminal_uid: terminals[1]?.uid,
map_output_to_terminal_uid: terminals[2]?.uid
}
})
const v0 = flux.createOutputNode({ name: "VP0", value: 0, unit: "V" });
const v1 = flux.createOutputNode({ name: "VP1", value: 0, unit: "V" });
const v2 = flux.createOutputNode({ name: "VP2", value: 0, unit: "V" });
const current = flux.createOutputNode({ name: "Current", value: 0, unit: "A" });