Strip Detector

this notebook loads data acquired with a segmented silicon detector

Download logfile and time of plasma start and plasma end

Reading log file

Communication between rPi (or any other computer) and PH32 readout chip is achieved with SURE (Simple USB Readout Equipment).

SURE uses NMEA 0183 protocol for communication. Each message for configuring PH32 is acknowledged. These 'echos' are saved in the log file.
For example $ACKNL,SEATM -- acquisition time set to 100us*1b is response to $SEATM,100 command which sets acquisition time.
$STARB,[wait-for-trigger],[delay] sets detector for measurement and is fololowed by 200 frames of measured data eg.: $FRAME,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*5d

From log file we extract

Plot raw data

Rearrange channels

The order of channels on the PH32 chip does not correspond to the order of strips on the sensor; we need to rearrange them.
Strip n. 0 is on channel 15, strip n. 1 on channel 16, ...

For energy measeuremets convert number of clock cycles to deposited energy

Plot result

About half of the frames are usually empty because the detector records after plasma end, so we'll plot only the interesting part.