Virtual oscilloscope
Learn to use an oscilloscope: two channels with their own signal generators, time and volts per division, edge trigger, X-Y Lissajous mode and automatic measurements.
How to use
- The two generators make the signals: pick a wave, frequency, amplitude (peak volts), offset, phase and, for a pulse, the duty cycle.
- The time base sets the seconds per square across; the volts controls set the volts per square up and down. There are 10 squares across and 8 up.
- The trigger makes the picture stand still: each sweep starts where the chosen channel crosses the level (dashed orange line) on a rising or falling edge. The crossing sits at the centre of the screen.
- Auto set picks a time base and volts that show 2 to 3 cycles nicely. The measurements under the screen update by themselves.
- X-Y mode plots channel 2 against channel 1: two sines give Lissajous figures, whose loops show the frequency ratio.
Keyboard and touch
| Tab | Move between controls |
| Arrow keys on a slider | Step the time base or volts through 1, 2, 5, 10 ... |
| Stop | Freeze the screen to look closely |
Tips
- If the picture slides sideways, the trigger level is outside the signal: put it between the highest and lowest point, or press Auto set.
- AC coupling removes the steady (DC) part, so a small ripple on a big offset fills the screen.
- For a sine, RMS = peak ÷ √2 (about 0.707 × peak); for a square wave RMS equals the peak; for a triangle it is peak ÷ √3.
- Normal trigger mode draws nothing until the signal crosses the level, which is how you catch rare events on a real scope.
- A real scope needs a probe and care: never connect one to mains wiring without proper training and equipment.
About this scope
Everything is simulated in your browser: the generator works out each wave exactly from its formula (no sound card or input is used), and the scope draws 1,000 points per sweep on a 10 × 8 division screen. The edge trigger scans ahead for the first crossing of the level and refines it by halving the step 40 times, so a triggered trace stays still. Measurements are taken from 4,000 samples of the screen: maximum, minimum, peak-to-peak, mean and RMS, with the period found from the average spacing of rising crossings of the middle level, and the duty cycle from the time spent above it. Time base and volts steps follow the usual 1-2-5 sequence. Nothing is sent anywhere.