AC Waveform Generator
This AC Waveform Generator synthesizes repeatable, exportable voltage test waveforms directly in the browser, using a single time-domain formulation that covers both power-quality distortion and grid-disturbance ride-through style envelopes.
The output voltage is expressed as:
\[ v(t)=m(t)\Big[V_{1,pk}\sin(2\pi f_0 t+\phi_0)+\sum_{h\in\mathcal{H}}V_{h,pk}\sin(2\pi h f_0 t+\phi_h)\Big] \]
- The fundamental component is defined by \(f_0\), \(\phi_0\), and the selected amplitude (\(V_{1,rms}\) or \(V_{1,pk}\)).
- Harmonics are configured as a set \(\mathcal{H}\) with “order \(h\) + magnitude (as a percentage of \(V_{1,rms}\)) + phase \(\phi_h\)”, enabling controlled distortion synthesis and repeatable THD evaluation.
- The event editor generates a piecewise envelope \(m(t)\) to model sag/swell, LVRT/HVRT segments, and short interruptions; an optional frequency offset \(\Delta f\) can be applied within event windows to represent disturbed grid frequency conditions.
The tool reports key metrics such as voltage THD and peak amplitude, and discretizes the final waveform at the chosen sampling rate \(f_s\) into a time-series that can be exported (CSV/JSON). This makes it practical for test scripting, report attachments, waveform traceability, and side-by-side verification against an instrument’s internal waveform editor.
Generate Real-World Distorted Waveform with Grid Simulator
While the present generator is only a tool for your reference, a programmable ac power source of grid simulator is actually the testing equipment you should opt for for AC power disturbance validation against your EUTs.






