Monday, June 12, 2017

XRF HD Prime Spectrum Data Analysis

Saving Data


The XRF HD Prime provides a variety of ways to save the quantified results from the sample which includes the full results or summarized results. Either way, the results of the spectrum which represents the counts recorded with respect to each energy (in keV) are not recorded in these files. 

Simultaneously hold the buttons 'Ctrl' + 'Shift' on the keyboard connected to the HD prime, to view the spectrum.  This will prompt a dialog to enter the expert password which will grant you access to view the spectrum along with the spectrum line for each element.

Each time the XRF quantifies a sample, a copy of the all the data related to the sample is automatically saved under one file (.hdx extension) to the folder with the date of data collection.

(Common Folder:  C:\Data\[Date of Data Collection])

A software named HD Data Viewer can be used to open such a file to view and save spectrum data. This software shows all the data including the full results, summary, a picture of the sample from the camera, and all the spectrum data, both in linear and log axes. This software is required to export the spectrum data we need to plot the spectrum in Matlab and calculate the peak values.

In HD Data Viewer;
-Import the data by clicking on the 'open' button and selecting the correct '.hdx' file.
-If the scanning information found on the bottom-left corner and the sample picture is correct, the data has been sucessfully imported.
-To view the spectrum data, click on the 'spectrum view' Tab on the top. (Ctrl + 3 for Windows PC)
-The spectrum can be viewed in Log or linear scale. The spectrum for each element listed on the right can also be viewed by simply marking the check-up box next to the particular element.
-Only the 'Raw spectrum' will be selected to export all the necessary data. 
-The drop-down menu in the 'CSV' button will provide you with the option to export the spectrum data from Low, Medium and High energies as shown below.




- Save '.csv' file to a convenient folder.
- To import data to MATLAB easily, the data table in Excel file should be Transposed.

Preparing data fro MATLAB

  • Open the excel sheet exported from HD Data Viewer and select all the data.
  • Simply select the first cell (A1), scroll all the way to the last cell (BZU4), Hold 'Shift' and select the last cell.
  • Right click and Copy.
  • Open a new blank Excel worksheet. 
  • Select the First cell (A1), right click and do a 'Transpose (T)' paste.
  • Save the new excel data sheet






No comments:

Post a Comment