The PEPITA test software

The GUI

File type

Function

.ui.qml

Description of the GUI: switchs, buttons, sliders...

.qml

Handle the logic of the GUI with JavaScript

.py

Main thread, handles the GUI and call Pyrame

Caution

JavaScript uses IEEE-754 double-precision (64 bit) floating points. But due to some restrictions only 32 bits integers are without risk. That's why the JavaScript GUI passes and receives values to/from Python as binary strings.

Changing GUI colors

In pepita_gui.py:

os.environ["QT_QUICK_CONTROLS_STYLE"] = "Material" os.environ["QT_QUICK_CONTROLS_MATERIAL_THEME"] = "Light" os.environ["QT_QUICK_CONTROLS_MATERIAL_ACCENT"] = "Blue"

and in pepita_gui.qml:

property color textColor:"#1e90ff"

See

https://doc.qt.io/qt-5/qtquickcontrols2-material.html

MATIS panel

_images/networkPanel.png
_images/matisPanel.png

Control/Indicator

Function

  1. Connect switch

  1. Power switch

Switch ON the MATIS board, see Power on

  1. Multiplexer channel switch

Set the multiplexer channel (ch 1 = MATIS, ch 2, ASIC)

Registers panel

Channel panel

_images/channel.png

Control/Indicator

Function

  1. Channel ID

Self explanatory

  1. Analog state switch

Switch ON or OFF the analog part of the channel

  1. Low threshold selector

Set the threshold value (low value) in Volt
for one of the two comparators. see Architecture
  1. High threshold selector

Set the threshold value (high value) in Volt
for one of the two comparators. see Architecture
  1. Common selector

Override power

_images/OridePower.png

Control/Indicator

Function

  1. OFF/ON switch

Disable or enable the analog part in every channel

  1. Get Power State button

Return the analog part state for every channel

DAC Voltage

_images/DACPanel.png

Control/Indicator

Function

  1. VDAC Max selector

Set the maximum voltage in V for the main DAC.
Max is 3.3 V. Must be superior to VDAC Min.
- and + decrease and incease by 0.1 V.
  1. VDAC Min selector

Set the minimum voltage in V for the main DAC.
Min is 0 V. Must be inferior to VDAC Max.
  1. Threshold step size display

Show the voltage step size in mV given by

  1. Common step size display

Show the common voltage step size in mV given by

Override Voltage

Caution

Global settings

_images/OrideVoltagePanel.png

Control/Indicator

Function

  1. Low selector

Set the low threshold value for all channel comparators

  1. High selector

Set the high threshold value for all channel comparators

  1. CM (Common) selector

Function

DAQ panel

_images/daqPanel.png

Control/Indicator

Function

  1. Reading Mode

Set the reading mode, see Readout for more info

  1. Channel selectoion

Use with on demande mode

  1. Number of acquisition

Loop until the number.

  1. Wait for trigger signal

Not used at this time.

  1. Number of hitted channels

Self explanatory

  1. Hitted channels

Self explanatory. If hitted = green light

  1. Test with random data

Plot window. WORK IN PROGRESS

  1. Save plot

Self explanatory

Bench

This part will control the PEPITES test bench. Not implemented.