This is a quick tutorial in capturing a full XRF spectrum from our analogue readout system. This is a cumbersome process that cannot be automated.
- After measuring an XRF spectrum on the Windows XP machine, select Save As from the File menu. In the dialog that comes up, choose Toolkit File (*.TKA) from the "Save as type" menu, then navigate to some appropriate folder.
- The XP machine is NOT on the network, so you will need to use a USB stick to move the data onto another computer. There should be a few USB sticks for use lying around the control station.
- The *.tka file is ridiculous. It is single column of numbers with no header. Here is how to interpret that file:
- The display on the XP machine is a histogram. Each bin of the histogram is a line in the *.tka file.
- The number in the *.tka file is the number of counts in that bin of the histogram.
- To convert histogram bin into an energy, you need to know the calibration coefficients.
- You can find the current calibration coefficients for each detector channel by digging in the Calibrate menu, as seen in the figure below.
- Select Energy Coefficients, this will tell you something like "
Energy = 3.354e+001 eV + 4.065e+000 * Ch"
- Thus, the energy of each bin of the histogram is 33.54 + 4.065*N eV, where N is the line number of the *.tka file.
- Example: line 1000 of the *.tka file represents 33.54 + 4.065*1000 eV = 4098.54 eV.
- An example of a python script that converts a *.tka file to something not crack-addled can be found at