Python interface with REM 500 Neutron Survey Meter MCA through RS-232 serial port
-
Retrieves data from the REM 500 Neutron Survey Meter in MCA mode through a RS-232 serial connection.
-
The REM 500 needs to be in MCA mode before launching the script
read_MCA.py.
- Put the REM 500 Neutron Survey Meter in MCA mode:
- Push the
ON/OFFbutton - Push the
MODEbutton - Push the
RESETbutton twice (which correspond toNEXTin this menu) - Push the
ALTbutton to access theMCAmode
-
Change the runtime or the commands you want to send to the REM 500 directly in the file
read_MCA.py -
Run the
read_MCA.pyscript (as administrator on linux to access the ttyUSB0 interface):
sudo python3 read_MCA.py
- Two output files are generated:
count_data.txtcontains timestamps and the number of counts in hex formatchannel_data.txtcontains the number of counts in each of the 256 channels
Run the data_extraction.py script:
python3 data_extraction.py
It creates a CSV file from the count_data.txt file containing the timestamps converted in seconds and the number of counts converted from hex format.
It also generates a plot of the number of counts as a function of time from the count_data.txt file, and it plots the number of counts in each channel from the channel_data.txt file