michaelbach / Oscilloscope2OGL

an openGL-based oscilloscope

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

©2013 Michael Bach, michael.bach@uni-freiburg.de, michaelbach.de

Oscilloscope2OGL

A simple multi-channel "oscilloscope" for MacOS. Similar to Oscilloscope3, but using OpenGL; with a simplified demo.

This oscilloscope can have one or up to kOscilloscopeMaxNumberOfTraces traces (preset to 8). Most calls are availabe in both single- and multichannel mode.

The oscilloscope advances 1 point in device space per call (advanceWithSample(s))

Entire sweeps can also be displayed with setTrace:toSweep: / setSingleTraceToSweep:

0 is in the vertical center, the vertical scaling is addressed by calling setMaxPositiveValue:.

To insert into your program

  • In your controller class: create an Oscilloscope2* IBOutlet.
  • In Interface Builder: instantiate an NSOpenGLView, set it's class to Oscilloscope2OGL, then connect.
  • Add the OpenGL framework

Options

  • choose trace and background colours
  • choose separator lines between traces
  • dashed zero line

About

an openGL-based oscilloscope


Languages

Language:Objective-C 100.0%