Analysis Tools¶
How to measure, analyze, and export simulation results in GeckoCIRCUITS.
Duration: 15 minutes
Prerequisites: Running Simulations
The SCOPE (Oscilloscope)¶
The SCOPE block is the primary tool for viewing simulation results.
Opening the Scope¶
Double-click any SCOPE block in the schematic to open the waveform viewer.
Scope Channels¶
Each SCOPE input terminal corresponds to a channel. Channels display:
- Voltage signals from voltage probes
- Current signals from current probes
- Control signals from control blocks
Navigation¶
| Action | How |
|---|---|
| Zoom in | Scroll wheel up |
| Zoom out | Scroll wheel down |
| Pan | Click + drag |
| Auto-scale | Right-click > Auto Scale |
| Reset view | Right-click > Reset |
Measurement Tools¶
Cursors¶
Use cursors for precise measurements:
- Right-click in the scope > Add Cursor
- Drag cursor to the point of interest
- Read the time and value display
Using Two Cursors¶
With two cursors, you can measure:
- Time difference (delta t) between two points
- Value difference (delta V or delta I)
- Frequency = 1 / delta t
Average and RMS¶
For periodic signals, the scope can compute:
| Measurement | Formula | Use For |
|---|---|---|
| Average | (1/T) x integral of v(t) dt | DC component |
| RMS | sqrt((1/T) x integral of v^2 dt) | Power calculations |
| Peak | max(v(t)) | Component stress |
| Peak-to-peak | max - min | Ripple measurement |
Key Measurements in Power Electronics¶
Ripple¶
Voltage or current ripple is the AC component on top of the DC:
Efficiency¶
Measure input and output power using voltage and current probes.
Power Factor¶
For AC circuits:
THD (Total Harmonic Distortion)¶
Use the FFT view in the scope for harmonic analysis.
FFT Analysis¶
The scope includes a frequency-domain view using Fast Fourier Transform:
Viewing the Spectrum¶
- Run simulation to steady state
- Open scope
- Switch to FFT view (if available)
- Observe harmonic content
What to Look For¶
| Feature | Indicates |
|---|---|
| Fundamental peak | Switching frequency |
| Harmonics | Integer multiples of f_sw |
| Low-frequency content | Control loop dynamics |
| Broadband noise | EMI concerns |
Exporting Data¶
Export to CSV¶
From the scope:
- Right-click > Export Data
- Choose CSV format
- Select channels to export
- Save file
CSV Format¶
Post-Processing¶
Exported data can be analyzed in:
- MATLAB/Octave -
data = readmatrix('output.csv'); - Python -
data = numpy.loadtxt('output.csv', delimiter=',') - Excel - Open directly as CSV
Thermal Measurements¶
When thermal simulation is enabled:
| Measurement | Unit | Description |
|---|---|---|
| Junction temperature | C | Semiconductor die temperature |
| Switching losses | W | Energy lost during transitions |
| Conduction losses | W | I^2 x R losses during ON state |
| Total losses | W | Switching + conduction |
See Thermal Simulation Tutorials for details.
Tips for Good Analysis¶
- Wait for steady state - Don't measure during startup transients
- Use enough cycles - Average over multiple switching periods
- Check time step - Too large a step hides high-frequency content
- Compare with theory - Verify results match analytical predictions
- Document settings - Record simulation parameters with results
Next Steps¶
- Tutorials - Apply analysis to specific topologies
- GeckoSCRIPT - Automate measurements
- Examples - Browse analyzed example circuits