# Oscilloscope class for binary waveforms 16-bit

**URL:** <https://root-forum.cern.ch/t/oscilloscope-class-for-binary-waveforms-16-bit/22103>\
**Category:** Evolution Proposals, Apps & Ideas\
**Created:** [October 25, 2016, 1:53pm UTC](https://root-forum.cern.ch/t/oscilloscope-class-for-binary-waveforms-16-bit/22103 "2016-10-25T13:53:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [October 25, 2016, 1:53pm UTC](https://root-forum.cern.ch/t/oscilloscope-class-for-binary-waveforms-16-bit/22103/1 "2016-10-25T13:53:11Z")

</div>

Assuming you have a binary file containing digitized pulse waveforms (16-bit) in simple format, i.e. a concatenation of 2-bytes x number of samples per pulse x number of pulses in file, this is your handy GUI class! It acts like an interactive oscilloscope to watch the stored waveforms, navigating back and forth, and even subtracting baseline and 2D accumulation.

It is tested with ROOT 5.34/36 (Windows and Linux) as well as ROOT 6.09/01 (Linux).

No need to install or make. Just unzip and run as:

```auto
root -l test_gui_v5.cpp+(0)
```

or:

```auto
root -l test_gui_v5.cpp+
```

or (ROOT6):

```auto
root -l test_gui.cpp+(0)
```

or:

```auto
root -l test_gui.cpp+
```

 ![](https://root-forum.cern.ch/uploads/default/original/2X/3/3c87d439806cbf13f2f373747d0403dcf31b4a3c.PNG)  

[libPulseSurfer.zip](https://root-forum.cern.ch/uploads/default/original/2X/1/18614177977fc6cbe12be9e265fd5ae469d5d596.zip) (797 KB)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 25, 2016, 2:25pm UTC](https://root-forum.cern.ch/t/oscilloscope-class-for-binary-waveforms-16-bit/22103/2 "2016-10-25T14:25:26Z")

</div>

I confirm it works on Mac with Cocoa - ROOT version 6.09/01

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [July 2, 2020, 11:25am UTC](https://root-forum.cern.ch/t/oscilloscope-class-for-binary-waveforms-16-bit/22103/3 "2020-07-02T11:25:09Z")

</div>

New version here with a reload file Icon for refreshing an overwritten file

[libPulseSurfer.zip](https://root-forum.cern.ch/uploads/short-url/2gNgOazCUiwf8alug6ZuGx9EP4N.zip) (10.7 KB)

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [September 11, 2023, 7:57am UTC](https://root-forum.cern.ch/t/oscilloscope-class-for-binary-waveforms-16-bit/22103/4 "2023-09-11T07:57:45Z")

</div>

New version with FIR filter, open from RAM and automatic leading edge trigger can be found here: [Fernando Hueso González / Pulse Surfer · GitLab](https://igit.ific.uv.es/ferhue/pulse-surfer/)
