const aTerminalId = "7e4b053a-7857-4e6a-8446-4a8d9971b02f";
const bTerminalId = "1a53081d-802e-440f-8053-a37bc66e4891";
const yTerminalId = "9d4c8f6f-4569-4f9b-92d2-a23b95f67f50";
const aTerminal = flux.getNodeById(aTerminalId, "elementTerminal");
const bTerminal = flux.getNodeById(bTerminalId, "elementTerminal");
const yTerminal = flux.getNodeById(yTerminalId, "elementTerminal");
if (!aTerminal || !bTerminal || !yTerminal) {
throw new Error("Oops! Couldn't find terminals");
}
const aVoltage = flux.createOutputNode("a-voltage");
aVoltage.name = "A";
aVoltage.unit = "V";
const bVoltage = flux.createOutputNode("b-voltage");
bVoltage.name = "B";
bVoltage.unit = "V";
const yVoltage = flux.createOutputNode("y-voltage");
yVoltage.name = "Y";
yVoltage.unit = "V";
flux.on("setup", () => {
const highVoltageProp = flux.properties.find((prop) => prop.name === "High Voltage");