FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour New class : TOscilloscopie
Posts: 7335
Joined: Thu Oct 18, 2012 07:17 PM

New class : TOscilloscopie

Posted: Sat May 16, 2026 05:45 PM

TOscilloscopie is a custom FiveWin/Harbour control designed to simulate a digital oscilloscope.
It can display real-time waveforms such as sine, square, triangle, ECG, FFT, noise and glitch effects using double buffering for smooth rendering.

The class supports:

  • customizable colors for background, grid and waves
  • horizontal scrolling and real-time updates
  • multiple visualization modes
  • animated signal generation with timers
  • GDI drawing directly on memory DCs for better performance

It is useful for audio visualization, MIDI monitoring, signal analysis and modern UI applications written in Harbour + FiveWin.

Easy syntax

@ 10,10 OSCILLOSCOPE oOsc ;
      SIZE 930,300 ;
      OF oDlg

   ADD CHANNEL TO oOsc ;
      COLOR CLR_YELLOW ;
      PEN 2 ;
      TYPE OSC_TYPE_SINUSO

 ADD VALUE TO oOsc ;
      CHANNEL 1 ;
      VALUE nSin
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7335
Joined: Thu Oct 18, 2012 07:17 PM

Re: New class : TOscilloscopie

Posted: Sun May 17, 2026 09:31 AM

TOscilloscopie is not just a graphical effect control.
It can be used to create real-time waveform visualizers, audio analyzers, electronic signal simulators and educational applications.

Some possible uses:

  • Audio waveform visualization
  • Oscilloscope simulation for schools and laboratories
  • MIDI activity monitor
  • FFT / spectrum analyzer
  • Real-time serial data visualization
  • Arduino / ESP32 sensor monitor
  • Industrial data plotting
  • Scientific signal analysis
  • ECG / biomedical signal simulation
  • Retro synth and music applications
  • Debugging serial devices
  • Educational electronics software
  • Waveform generators
  • CSV / WAV file visualization
  • Real-time monitoring dashboards

The control supports:

  • Multiple channels
  • Independent colors and pen sizes
  • Different waveform types
  • Horizontal scrolling
  • Configurable grid
  • Center reference lines
  • Vertical and horizontal measures
  • Real-time updates
  • Script-based waveform generation (on working)
  • Custom waveform rendering methods

Possible future extensions:
-scripts

  • Audio input support
  • WAV playback visualization
  • USB/RS232 hardware integration
  • Trigger system
  • Zoom
  • Data recording
  • Screenshot export
  • Signal math functions
  • Real-time FFT

One practical use of TOscilloscopie is real-time visualization of data coming from a COM/RS232 serial port.

For example:

  • Arduino sensors
  • ESP32 devices
  • Temperature sensors
  • Voltage readers
  • PWM generators
  • Industrial controllers
  • Laboratory instruments
  • Serial debugging tools

The device can send numeric values through the serial port:

45
48
50
55
60

and the oscilloscope can display the signal in real time using:

ADD VALUE TO oOsc ;
CHANNEL 1 ;
VALUE nValue

This makes TOscilloscopie useful for:

  • Electronic laboratories
  • Technical schools
  • Automation projects
  • Audio experiments
  • Sensor monitoring
  • Educational demonstrations

The class can also be used to visualize data coming from:

  • WAV audio files
  • CSV files
  • MIDI events
  • Real-time generated signals
  • External scripts
  • USB virtual COM devices

Example architecture:

Sensor -> COM Port -> FiveWin RS232 -> TOscilloscopie

The control can therefore simulate a small software oscilloscope entirely written in FiveWin/Harbour.

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 1060
Joined: Sun Oct 09, 2005 10:41 PM

Re: New class : TOscilloscopie

Posted: Mon May 18, 2026 01:34 AM

Excelente Silvio,,,,

Posts: 7335
Joined: Thu Oct 18, 2012 07:17 PM

Re: New class : TOscilloscopie

Posted: Mon May 18, 2026 05:22 PM

Simulation on a window with result data

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 657
Joined: Fri Oct 21, 2005 05:54 AM

Re: New class : TOscilloscopie

Posted: Tue May 19, 2026 11:23 PM

Dear Silivio,

Congratulations to You The Experienced FiveWinner. Great Class. :D

-Ramesh Babu

Continue the discussion