const anodeerminalElement = flux.getNodeById("de29592a-63c1-9711-6835-bb4f755b0749");
const cathodeTerminalElement = flux.getNodeById("226694b2-810c-337e-3ef8-4123591acc82");
const voltagePeak = flux.createOutputNode();
const voltageAnode = flux.createOutputNode();
const voltageCathode = flux.createOutputNode();
const freqHz = flux.createOutputNode();
const getUserInputValues = () => {
// const waveform = flux.controls.find(control => control.name === "Waveform")?.value ?? "Sine";
const waveform = flux.properties.find((prop) => prop.name === "Waveform")?.value ?? "Sine";
const peakVoltage = Number(flux.properties.find((prop) => prop.name === "Peak Voltage")?.value) ?? 5;
const dcOffset = Number(flux.properties.find((prop) => prop.name === "DC Offset")?.value) ?? 0;
const frequency = Number(flux.properties.find((prop) => prop.name === "Frequency")?.value) ?? 40;
const phaseShift = Number(flux.properties.find((prop) => prop.name === "Phase Offset")?.value) ?? 0;
const inputDutyCycle = Number(flux.properties.find((prop) => prop.name === "Duty Cycle")?.value) ?? 50;
const dutyCycle = inputDutyCycle / 100.0;
return {
waveform,