const aTerminalId = "e451406c-bdf9-558a-bb23-77ed78935623";
const bTerminalId = "d5d3e630-adfa-bb0d-a083-a540f2c2a8e4";
const yTerminalId = "ac4c9640-8c79-3cf9-f0ec-d30200f3d7bd";
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");