.. raw:: html
Pulse Viewer
*****************
The Pulse Viewer allows you to display the waveforms of recorded pulses by the ADC converter. Thanks to this, it is possible to estimate the basic parameters of the pulses, such as polarity, pulse rise, and fall time.
The Pulse Viewer Tab
=====================
Waveforms viewed in the Pulse Viewer tab are decimated by 4. Full-timing resolution waveforms are grabbed in the :ref:`PULSE-RAW` option.
.. image:: fig/PulseViewer.png
The Pulse Viewer settings
============================
.. image:: fig/PulseViewer_sig.png
Trigger threshold
-------------------
The value of trigger threshold is referenced to 0 level.
.. NOTE:: When adjusting the trigger level of a digitizer the user should keep in mind that the digitized samples are represented in a range from -2^Nbit to (2^Nbit - 1) scale (when Nbit is the number of bit of the digitizer ADC) but the digitizer input dynamic range scale is not calibrated and cannot be used as a reference for absolute measurements like a standard oscilloscope but just for relative ones.
Acq. window length
-------------------
Acquisition window length of the input signal.
Acq. window offset
-------------------
Acquisition window offset allows you to adjust the signal position relative to the entire acquisition window.
Baseline offset
----------------
The DC baseline shift is implemented using a hardware DAC placed in the analog input path (analog front-end, AFE). Signals from detectors are mainly unipolar. Adjusting the DC baseline level will provide proper voltage range matching. The middle level is 512.
.. NOTE:: Changing this parameter will change the DC baseline offset in the entire digital pulse processing path for selected channel.
Trigger Mode
---------------
* **Any above** - Any sample is above the trigger threshold.
* **Any below** - Any sample is above the trigger threshold.
* **Rising edge** - First sample is below and second is above trigger threshold.
* **Falling edge** - First sample is above and second is below trigger threshold.
.. _PULSE-RAW:
Save streaming data
------------------------
To save streaming data consisting of the viewed pulses, go to **Options -> Data Stream Settings** and set the file format and local storage location. To enable downloading streaming data from the next measurement, set the options **Save streaming data**.
.. NOTE:: The ADC is of the time-interleaved type, which in this case means that it consists of two ADCs alternately sampling the same signal. Hardware interleaving correction is disabled in the ADC and, if necessary, must be digitally implemented by the user.
Code to read binary data using Python:
.. literalinclude :: read_waveforms.py
:language: python