Converts exported CSV files by the RadiaCode-101 pocket gamma spectrometer into XML.
- this script needs Node 14.8+
- Clone this repository
- Copy
config.json.sample
toconfig.json
and adjust your settings- You can find most of the values inside the device settings menu of the RadiaCode-101 Windows application
- Put all the CSV files you want to convert into the folder
./input
- make sure you add
-t<measurementtime>
to your file names, e.g.measurement.csv
which took 2000 seconds should becomemeasurement-t2000.csv
- make sure you add
- Run the script with
npm start
ornode convert.js
- You can find the converted files in the folder
./output
afterwards
The config-sample.json
contains everything you need to setup a config.json
for a single webhook endpoint deploying multiple projects:
{
"serialnumber": "RC-101-000000",
"coefficients": [
0.193228,
9.5851,
0.00662241
],
"devicename": "RadiaCode-101",
"polynomialorder": 2,
"formatversion": 120920,
"channels": 256
}
Setting | Description |
---|---|
serialnumber |
The serial number of your device (change this to your value if you feel like it) |
coefficients |
The calibration coefficients of your device, which can be found in the Android and Windows applications |
devicename |
The device model (doesn't need to be changed) |
polynomialorder |
The device's polynomial order setting (doesn't need to be changed) |
formatversion |
The current XML format version (doesn't need to be changed) |
channels |
The channels to display, for the RadiaCode-101 this is 256 for now and doesn't need to be changed |