oei.py

The class where the definitions for the different processes are of the Ethernet interaction between DAPHNE and the computer.

daphne_channel.py

The class where the definitions for the different operations with the data using oei.py. The functions are:

registers.py

The container and definitions of the different addresses memory for the proccess.

DAQ_V1.py

It is the main script for the MASSIBO acquisition system.

For this is necessary the next one.

import os
import struct
import time
import copy
import csv 
import serial
import io
from logger import logger
from multiprocessing import Process, Manager
from multiprocessing.managers import ValueProxy
from typing import Tuple, List
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
from ctypes import c_bool

This script is for 3 channels from DAPHNE. The activation/deactivation of the channels is manual.

CH_0_ENABLE=True  
CH_1_ENABLE=True  
CH_2_ENABLE=True   

The baseline and threshold are also.

CH_0_THRESHOLD_ADC_UNITS=8146-8
CH_1_THRESHOLD_ADC_UNITS= 8182 - 12 
CH_2_THRESHOLD_ADC_UNITS= 8191-8 

CH_0_BASELINE=8146
CH_1_BASELINE=8182 
CH_2_BASELINE=8191

In this script, we can save the waveforms and timestamp data in 3 file types: