-
Lukas Winter authoredLukas Winter authored
Software instructions
These folders includes .c code for the digitizer m4i.4451 [1] and Fortran code that implements .c code as c-routines.
The compilation of the codes can be done using the first line of each Fortran files. Everything is implemented under Cent-OS system. Compatibility to other Linux distributions or windows has not been investigated.
It is also possible to use other software platforms for the digitizer cards such as MATLAB and Python. The function names to control the cards are the same throughout different environments. Hence, mitigation to other software platforms should be relatively straightforward. For more information, please see the documentation and examples from the manufacturer’s website [1]. In addition, please follow the manufacturer’s website to install corresponding libraries because they differ by the OS.
ADC
The file m4iset_extrig_rms.c contains the functions for the ADC card setup and receiver operation. The routine uses 3 arguments:
- *pvData 16-bit data pointer for the received data
- *lMemsize 32-bit memory length for the received data
- *posttr 32-bit post trigger pointer to adjust the time window of the ADC. Please see manufacturer’s documentation for more information about post trigger.
The other two scripts rec_m4i_fifo_tdfilter.f and rec_m4i_tdfilter_rms.f implement the c routine. They need to be compiled with a Fortran complier. The first line in these files can be taken as an example i.e. copy and paste it into the OS terminal using the working folder.
References
[1] M4i.4451-x8 | Spectrum Instrumentation https://spectrum-instrumentation.com/de/m4i4451-x8