This may be where I'm failing. Setup Fields (Checked):
Date
Test #
Sample ID
Grade Match <--- Probably can uncheck that, but doesn't matter (?)
Then a number of unchecked boxes below (e.g. lat/lon).
This I may have wrong. I shouldn't need any of them enabled, since that's not the data I want. I don't want it to guess at the element, just give me the raw dump. I've tried this a few different combos, it doesn't seem to matter.
Chem Elements(32)
Formulas(0) Left at default, unchecked.
Arrange order. Default.
Spectra Format: Raw <--- This is what I think is the important one to set, but it doesn't appear to have an effect.
Uncertainty, Default unchecked.
Test Info, Default is unchecked. I have it checked. OK?
Save that template.
Then back at main menu, go to Analyze.
I've tried both Geochem/Element Pro, for this example I'll do Geochem. Does it matter?
I guess here I should be telling Geochem to use the template? Or is that after acquisition?
Take a sample. After sampling, it displays the table of elements' %.
Click the round graph icon and I can see the spectra display. That is the raw dump I'm trying to get.
Go back to top main menu --> Results.
At this point, I think I could just select the one I want to dump, but following your example from yesterday, go to the three dots "Filter by Date" and select today's date.
"Show 5 results" (or however many)
Click export/arrow icon.
Format: Excel.
Use default filename, overwrite file.
Choose Template: Raw <--- This seems like the important one, matching to template above.
Start Export: "Files have exported successfully"
View the exports files, and see there is the file:
That directory is empty. That is where I was expecting to find the exported file, but I've done something wrong. I've tried a few variations of the above.
One thing of note, if you do this:
Top main menu --> Results
Select any of the sample results.
Click the round spectra icon.
There is no spectra data displayed.
When this is viewed immediately after the sample is taken, the sample data is there. When this is viewed later, it isn't there. So it can't export it because it doesn't have it available for export.
Procedure:
1) Power on, log in, main menu.
2) Results
3) Three dots --> Templates Setup
4) New Template: "Raw"
5) This may be where I'm failing. Setup Fields (Checked):
Date
Test #
Sample ID
Grade Match <--- Probably can uncheck that, but doesn't matter (?)
Then a number of unchecked boxes below (e.g. lat/lon).
6) This I may have wrong. I shouldn't need any of them enabled, since that's not the data I want. I don't want it to guess at the element, just give me the raw dump. I've tried this a few different combos, it doesn't seem to matter.
Chem Elements(32)
7) Formulas(0) Left at default, unchecked.
8) Arrange order. Default.
9) Spectra Format: Raw <--- This is what I think is the important one to set, but it doesn't appear to have an effect.
10) Uncertainty, Default unchecked.
11) Test Info, Default is unchecked. I have it checked. OK?
12) Save that template.
13) Then back at main menu, go to Analyze.
14) I've tried both Geochem/Element Pro, for this example I'll do Geochem. Does it matter?
15) I guess here I should be telling Geochem to use the template? Or is that after acquisition?
16) Take a sample. After sampling, it displays the table of elements' %.
17) Click the round graph icon and I can see the spectra display. That is the raw dump I'm trying to get.
18) Go back to top main menu --> Results.
19) At this point, I think I could just select the one I want to dump, but following your example from yesterday, go to the three dots "Filter by Date" and select today's date.
20) "Show 5 results" (or however many)
21) Click export/arrow icon.
22) Format: Excel.
23) Use default filename, overwrite file.
24) Choose Template: Raw <--- This seems like the important one, matching to template above.
25) Start Export: "Files have exported successfully"
26) View the exports files, and see there is the file:
```
/storage/sdcard0/export/csv/2022.01.21.csv
"Date","Test #","Sample ID","Grade Match","Mg","Al","Si","Ti","V","Cr","Mn","Fe","Co","Ni","Cu","Zn","Se","Zr","Nb","Mo","Ag","Cd","Sn","Hf","Ta","W","Re","Pb","Bi","Pd","Sb","Au","P","S","Y","Ru"
"2022-01-21 03:58:00","28","","Geochem","ND","8.16","0.119","0.005",,"ND","ND","0.083",,"0.285","ND","ND",,,,,,,,,,,,"0.036",,,,,,"ND",,
"2022-01-21 04:00:17","29","","Geochem","ND","ND","0.191","0.008",,"ND","ND","0.158",,"0.282","ND","0.017",,,,,,,,,,,,"0.052",,,,,,"ND",,
"2022-01-21 04:05:09","30","","Geochem","ND","6.72","0.165","0.009",,"ND","ND","0.116",,"0.266","ND","0.014",,,,,,,,,,,,"0.048",,,,,,"ND",,
"2022-01-21 04:16:10","31","","Element Pro",,,,,,,,,,,,,,,,,,,,,"1.55",,,,,,"0.29",,"1.05",,,
"2022-01-21 15:59:29","32","","Geochem","ND","ND","0.392","0.018",,"ND","ND","0.200",,"0.288","ND","ND",,,,,,,,,,,,"ND",,,,,,"ND",,
```
So that appears to export ok.
27) View the exports files for the spectra directory:
```
/storage/sdcard0/export/spectra/
```
That directory is empty. That is where I was expecting to find the exported file, but I've done something wrong. I've tried a few variations of the above.
One thing of note, if you do this:
1) Top main menu --> Results
2) Select any of the sample results.
3) Click the round spectra icon.
4) There is no spectra data displayed.
When this is viewed immediately after the sample is taken, the sample data is there. When this is viewed later, it isn't there. So it can't export it because it doesn't have it available for export.
Doing a sample finds the peaks ok, as can be seen by hitting the spectra icon immediately after taking a sample (but not later when viewing the sample). This is from the logs while taking a sample:
2022-01-21 18:14:25,875 [orThread] INFO c.s.c.a.SpectrumPeakFinding3 : SpectrumPeakFinding3 Z903-KLP
2022-01-21 18:14:25,878 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 236.604569 absolute intensity: 0.031205 libsline wl: 236.710000 libsline intensity: 0.040000
2022-01-21 18:14:25,879 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 308.276473 absolute intensity: 0.216626 libsline wl: 308.215000 libsline intensity: 0.100000
2022-01-21 18:14:25,880 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 415.907407 absolute intensity: 0.025996 libsline wl: 415.860000 libsline intensity: 0.180000
2022-01-21 18:14:25,881 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 420.102257 absolute intensity: 0.019288 libsline wl: 420.070000 libsline intensity: 0.180000
2022-01-21 18:14:25,883 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 426.008710 absolute intensity: 0.009604 libsline wl: 425.930000 libsline intensity: 0.980000
2022-01-21 18:14:25,885 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 430.075146 absolute intensity: 0.008067 libsline wl: 430.010000 libsline intensity: 0.530000
2022-01-21 18:14:25,886 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 433.401643 absolute intensity: 0.008895 libsline wl: 433.360000 libsline intensity: 0.730000
2022-01-21 18:14:25,888 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 434.769981 absolute intensity: 0.011260 libsline wl: 434.810000 libsline intensity: 1.000000
2022-01-21 18:14:25,889 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 193.759668 absolute intensity: 0.023833 libsline wl: 193.759000 libsline intensity: 1.000000
2022-01-21 18:14:25,890 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 197.715224 absolute intensity: 0.005825 libsline wl: 197.819000 libsline intensity: 0.450000
2022-01-21 18:14:25,892 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 208.177499 absolute intensity: 0.004507 libsline wl: 208.209000 libsline intensity: 0.450000
2022-01-21 18:14:25,892 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 211.158850 absolute intensity: 0.006682 libsline wl: 211.067000 libsline intensity: 0.400000
2022-01-21 18:14:25,893 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 358.699781 absolute intensity: 0.069605 libsline wl: 358.673000 libsline intensity: 0.100000
2022-01-21 18:14:25,895 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 312.953274 absolute intensity: 0.004928 libsline wl: 313.041000 libsline intensity: 1.000000
2022-01-21 18:14:25,896 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 195.375253 absolute intensity: 0.005155 libsline wl: 195.471000 libsline intensity: 0.040000
2022-01-21 18:14:25,898 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 193.034241 absolute intensity: 0.052006 libsline wl: 193.085000 libsline intensity: 1.000000
2022-01-21 18:14:25,899 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 247.853613 absolute intensity: 0.005014 libsline wl: 247.860000 libsline intensity: 0.300000
2022-01-21 18:14:25,900 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 422.676796 absolute intensity: 0.009816 libsline wl: 422.673000 libsline intensity: 0.300000
2022-01-21 18:14:25,905 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 228.510806 absolute intensity: 0.008774 libsline wl: 228.616000 libsline intensity: 0.530000
2022-01-21 18:14:25,907 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 205.533278 absolute intensity: 0.008414 libsline wl: 205.552000 libsline intensity: 0.100000
2022-01-21 18:14:25,908 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 206.440127 absolute intensity: 0.003086 libsline wl: 206.542000 libsline intensity: 0.080000
2022-01-21 18:14:25,909 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 852.130621 absolute intensity: 0.086114 libsline wl: 852.110000 libsline intensity: 1.000000
2022-01-21 18:14:25,910 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 219.239955 absolute intensity: 0.006121 libsline wl: 219.250000 libsline intensity: 0.180000
2022-01-21 18:14:25,912 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 224.618615 absolute intensity: 0.013238 libsline wl: 224.700000 libsline intensity: 0.340000
2022-01-21 18:14:25,915 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 656.283566 absolute intensity: 0.106043 libsline wl: 656.279000 libsline intensity: 1.000000
2022-01-21 18:14:25,916 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 202.937057 absolute intensity: 0.003360 libsline wl: 202.818000 libsline intensity: 0.120000
2022-01-21 18:14:25,918 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 196.628074 absolute intensity: 0.009349 libsline wl: 196.670000 libsline intensity: 0.040000
2022-01-21 18:14:25,921 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 281.626320 absolute intensity: 0.218034 libsline wl: 281.625000 libsline intensity: 0.710000
2022-01-21 18:14:25,922 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 744.248469 absolute intensity: 0.016285 libsline wl: 744.230000 libsline intensity: 0.800000
2022-01-21 18:14:25,923 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 746.846317 absolute intensity: 0.024420 libsline wl: 746.830000 libsline intensity: 1.000000
2022-01-21 18:14:25,925 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 588.964333 absolute intensity: 0.014430 libsline wl: 588.995000 libsline intensity: 1.000000
2022-01-21 18:14:25,928 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 589.577782 absolute intensity: 0.008227 libsline wl: 589.592000 libsline intensity: 0.800000
2022-01-21 18:14:25,930 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 216.513795 absolute intensity: 0.022487 libsline wl: 216.555000 libsline intensity: 0.250000
2022-01-21 18:14:25,931 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 217.376304 absolute intensity: 0.003537 libsline wl: 217.467000 libsline intensity: 0.220000
2022-01-21 18:14:25,932 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 227.052317 absolute intensity: 0.058541 libsline wl: 227.021000 libsline intensity: 0.200000
2022-01-21 18:14:25,934 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 777.343187 absolute intensity: 0.131422 libsline wl: 777.190000 libsline intensity: 1.000000
2022-01-21 18:14:25,936 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 213.568073 absolute intensity: 0.008300 libsline wl: 213.620000 libsline intensity: 0.800000
2022-01-21 18:14:25,938 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 214.990873 absolute intensity: 0.008242 libsline wl: 214.910000 libsline intensity: 0.800000
2022-01-21 18:14:25,939 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 229.554263 absolute intensity: 0.004655 libsline wl: 229.652000 libsline intensity: 0.400000
2022-01-21 18:14:25,941 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 248.858080 absolute intensity: 0.003921 libsline wl: 248.891000 libsline intensity: 0.250000
2022-01-21 18:14:25,943 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 203.551597 absolute intensity: 0.005102 libsline wl: 203.650000 libsline intensity: 0.560000
2022-01-21 18:14:25,944 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 214.325488 absolute intensity: 0.014091 libsline wl: 214.420000 libsline intensity: 1.000000
2022-01-21 18:14:25,946 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 224.020681 absolute intensity: 0.007624 libsline wl: 224.090000 libsline intensity: 0.340000
2022-01-21 18:14:25,947 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 224.618615 absolute intensity: 0.013238 libsline wl: 224.550000 libsline intensity: 0.660000
2022-01-21 18:14:25,948 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 228.882196 absolute intensity: 0.003729 libsline wl: 228.820000 libsline intensity: 0.380000
2022-01-21 18:14:25,950 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 304.233925 absolute intensity: 0.008151 libsline wl: 304.260000 libsline intensity: 0.090000
2022-01-21 18:14:25,952 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 306.448338 absolute intensity: 0.060498 libsline wl: 306.470000 libsline intensity: 1.000000
2022-01-21 18:14:25,953 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 364.222273 absolute intensity: 0.029618 libsline wl: 364.317000 libsline intensity: 0.300000
2022-01-21 18:14:25,955 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 794.811443 absolute intensity: 0.275474 libsline wl: 794.760000 libsline intensity: 0.500000
2022-01-21 18:14:25,957 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 221.374445 absolute intensity: 0.011713 libsline wl: 221.426000 libsline intensity: 1.000000
2022-01-21 18:14:25,959 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 206.840304 absolute intensity: 0.003905 libsline wl: 206.834000 libsline intensity: 0.850000
2022-01-21 18:14:25,961 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 218.034823 absolute intensity: 0.028862 libsline wl: 217.919000 libsline intensity: 0.380000
2022-01-21 18:14:25,962 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 191.844253 absolute intensity: 0.004292 libsline wl: 191.919000 libsline intensity: 0.080000
2022-01-21 18:14:25,964 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 303.328733 absolute intensity: 0.005999 libsline wl: 303.412000 libsline intensity: 0.400000
2022-01-21 18:14:25,966 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 226.236163 absolute intensity: 0.036019 libsline wl: 226.162000 libsline intensity: 0.800000
2022-01-21 18:14:25,967 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 233.263540 absolute intensity: 0.004015 libsline wl: 233.198000 libsline intensity: 0.380000
2022-01-21 18:14:25,972 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 200.202100 absolute intensity: 0.007757 libsline wl: 200.200000 libsline intensity: 1.000000
2022-01-21 18:14:25,973 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 324.104180 absolute intensity: 0.004279 libsline wl: 324.198000 libsline intensity: 0.350000
2022-01-21 18:14:25,976 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 202.477270 absolute intensity: 0.006162 libsline wl: 202.548000 libsline intensity: 0.240000
Doing a sample finds the peaks ok, as can be seen by hitting the spectra icon immediately after taking a sample (but not later when viewing the sample). This is from the logs while taking a sample:
```
2022-01-21 18:14:25,875 [orThread] INFO c.s.c.a.SpectrumPeakFinding3 : SpectrumPeakFinding3 Z903-KLP
2022-01-21 18:14:25,878 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 236.604569 absolute intensity: 0.031205 libsline wl: 236.710000 libsline intensity: 0.040000
2022-01-21 18:14:25,879 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 308.276473 absolute intensity: 0.216626 libsline wl: 308.215000 libsline intensity: 0.100000
2022-01-21 18:14:25,880 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 415.907407 absolute intensity: 0.025996 libsline wl: 415.860000 libsline intensity: 0.180000
2022-01-21 18:14:25,881 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 420.102257 absolute intensity: 0.019288 libsline wl: 420.070000 libsline intensity: 0.180000
2022-01-21 18:14:25,883 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 426.008710 absolute intensity: 0.009604 libsline wl: 425.930000 libsline intensity: 0.980000
2022-01-21 18:14:25,885 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 430.075146 absolute intensity: 0.008067 libsline wl: 430.010000 libsline intensity: 0.530000
2022-01-21 18:14:25,886 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 433.401643 absolute intensity: 0.008895 libsline wl: 433.360000 libsline intensity: 0.730000
2022-01-21 18:14:25,888 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 434.769981 absolute intensity: 0.011260 libsline wl: 434.810000 libsline intensity: 1.000000
2022-01-21 18:14:25,889 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 193.759668 absolute intensity: 0.023833 libsline wl: 193.759000 libsline intensity: 1.000000
2022-01-21 18:14:25,890 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 197.715224 absolute intensity: 0.005825 libsline wl: 197.819000 libsline intensity: 0.450000
2022-01-21 18:14:25,892 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 208.177499 absolute intensity: 0.004507 libsline wl: 208.209000 libsline intensity: 0.450000
2022-01-21 18:14:25,892 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 211.158850 absolute intensity: 0.006682 libsline wl: 211.067000 libsline intensity: 0.400000
2022-01-21 18:14:25,893 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 358.699781 absolute intensity: 0.069605 libsline wl: 358.673000 libsline intensity: 0.100000
2022-01-21 18:14:25,895 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 312.953274 absolute intensity: 0.004928 libsline wl: 313.041000 libsline intensity: 1.000000
2022-01-21 18:14:25,896 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 195.375253 absolute intensity: 0.005155 libsline wl: 195.471000 libsline intensity: 0.040000
2022-01-21 18:14:25,898 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 193.034241 absolute intensity: 0.052006 libsline wl: 193.085000 libsline intensity: 1.000000
2022-01-21 18:14:25,899 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 247.853613 absolute intensity: 0.005014 libsline wl: 247.860000 libsline intensity: 0.300000
2022-01-21 18:14:25,900 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 422.676796 absolute intensity: 0.009816 libsline wl: 422.673000 libsline intensity: 0.300000
2022-01-21 18:14:25,905 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 228.510806 absolute intensity: 0.008774 libsline wl: 228.616000 libsline intensity: 0.530000
2022-01-21 18:14:25,907 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 205.533278 absolute intensity: 0.008414 libsline wl: 205.552000 libsline intensity: 0.100000
2022-01-21 18:14:25,908 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 206.440127 absolute intensity: 0.003086 libsline wl: 206.542000 libsline intensity: 0.080000
2022-01-21 18:14:25,909 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 852.130621 absolute intensity: 0.086114 libsline wl: 852.110000 libsline intensity: 1.000000
2022-01-21 18:14:25,910 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 219.239955 absolute intensity: 0.006121 libsline wl: 219.250000 libsline intensity: 0.180000
2022-01-21 18:14:25,912 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 224.618615 absolute intensity: 0.013238 libsline wl: 224.700000 libsline intensity: 0.340000
2022-01-21 18:14:25,915 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 656.283566 absolute intensity: 0.106043 libsline wl: 656.279000 libsline intensity: 1.000000
2022-01-21 18:14:25,916 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 202.937057 absolute intensity: 0.003360 libsline wl: 202.818000 libsline intensity: 0.120000
2022-01-21 18:14:25,918 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 196.628074 absolute intensity: 0.009349 libsline wl: 196.670000 libsline intensity: 0.040000
2022-01-21 18:14:25,921 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 281.626320 absolute intensity: 0.218034 libsline wl: 281.625000 libsline intensity: 0.710000
2022-01-21 18:14:25,922 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 744.248469 absolute intensity: 0.016285 libsline wl: 744.230000 libsline intensity: 0.800000
2022-01-21 18:14:25,923 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 746.846317 absolute intensity: 0.024420 libsline wl: 746.830000 libsline intensity: 1.000000
2022-01-21 18:14:25,925 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 588.964333 absolute intensity: 0.014430 libsline wl: 588.995000 libsline intensity: 1.000000
2022-01-21 18:14:25,928 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 589.577782 absolute intensity: 0.008227 libsline wl: 589.592000 libsline intensity: 0.800000
2022-01-21 18:14:25,930 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 216.513795 absolute intensity: 0.022487 libsline wl: 216.555000 libsline intensity: 0.250000
2022-01-21 18:14:25,931 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 217.376304 absolute intensity: 0.003537 libsline wl: 217.467000 libsline intensity: 0.220000
2022-01-21 18:14:25,932 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 227.052317 absolute intensity: 0.058541 libsline wl: 227.021000 libsline intensity: 0.200000
2022-01-21 18:14:25,934 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 777.343187 absolute intensity: 0.131422 libsline wl: 777.190000 libsline intensity: 1.000000
2022-01-21 18:14:25,936 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 213.568073 absolute intensity: 0.008300 libsline wl: 213.620000 libsline intensity: 0.800000
2022-01-21 18:14:25,938 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 214.990873 absolute intensity: 0.008242 libsline wl: 214.910000 libsline intensity: 0.800000
2022-01-21 18:14:25,939 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 229.554263 absolute intensity: 0.004655 libsline wl: 229.652000 libsline intensity: 0.400000
2022-01-21 18:14:25,941 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 248.858080 absolute intensity: 0.003921 libsline wl: 248.891000 libsline intensity: 0.250000
2022-01-21 18:14:25,943 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 203.551597 absolute intensity: 0.005102 libsline wl: 203.650000 libsline intensity: 0.560000
2022-01-21 18:14:25,944 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 214.325488 absolute intensity: 0.014091 libsline wl: 214.420000 libsline intensity: 1.000000
2022-01-21 18:14:25,946 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 224.020681 absolute intensity: 0.007624 libsline wl: 224.090000 libsline intensity: 0.340000
2022-01-21 18:14:25,947 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 224.618615 absolute intensity: 0.013238 libsline wl: 224.550000 libsline intensity: 0.660000
2022-01-21 18:14:25,948 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 228.882196 absolute intensity: 0.003729 libsline wl: 228.820000 libsline intensity: 0.380000
2022-01-21 18:14:25,950 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 304.233925 absolute intensity: 0.008151 libsline wl: 304.260000 libsline intensity: 0.090000
2022-01-21 18:14:25,952 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 306.448338 absolute intensity: 0.060498 libsline wl: 306.470000 libsline intensity: 1.000000
2022-01-21 18:14:25,953 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 364.222273 absolute intensity: 0.029618 libsline wl: 364.317000 libsline intensity: 0.300000
2022-01-21 18:14:25,955 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 794.811443 absolute intensity: 0.275474 libsline wl: 794.760000 libsline intensity: 0.500000
2022-01-21 18:14:25,957 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 221.374445 absolute intensity: 0.011713 libsline wl: 221.426000 libsline intensity: 1.000000
2022-01-21 18:14:25,959 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 206.840304 absolute intensity: 0.003905 libsline wl: 206.834000 libsline intensity: 0.850000
2022-01-21 18:14:25,961 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 218.034823 absolute intensity: 0.028862 libsline wl: 217.919000 libsline intensity: 0.380000
2022-01-21 18:14:25,962 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 191.844253 absolute intensity: 0.004292 libsline wl: 191.919000 libsline intensity: 0.080000
2022-01-21 18:14:25,964 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 303.328733 absolute intensity: 0.005999 libsline wl: 303.412000 libsline intensity: 0.400000
2022-01-21 18:14:25,966 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 226.236163 absolute intensity: 0.036019 libsline wl: 226.162000 libsline intensity: 0.800000
2022-01-21 18:14:25,967 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 233.263540 absolute intensity: 0.004015 libsline wl: 233.198000 libsline intensity: 0.380000
2022-01-21 18:14:25,972 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 200.202100 absolute intensity: 0.007757 libsline wl: 200.200000 libsline intensity: 1.000000
2022-01-21 18:14:25,973 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 324.104180 absolute intensity: 0.004279 libsline wl: 324.198000 libsline intensity: 0.350000
2022-01-21 18:14:25,976 [orThread] INFO c.s.c.c.WhatsThatCalc : FOUND peak wl: 202.477270 absolute intensity: 0.006162 libsline wl: 202.548000 libsline intensity: 0.240000
```
As a test, I set the Defaut template to Raw for Spectra Format. This was similar to above. I could view the spectra immediately after taking a sample. But if I went to the top main menu, then to Results and viewed it there, the sample was available, but the spectra wasn't. Doing an export showed this in the logs:
2022-01-23 18:50:16,102 [ main] INFO WLCalLog : start WL Cal check
2022-01-23 18:50:18,681 [ main] INFO ExportActivity : onProgressUpdate: 1 / 4
2022-01-23 18:50:18,708 [Thread 1] ERROR c.s.e.ExportToFileTask : Error loading test result:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
at com.sciaps.export.ExportToFileTask.onBackground(ExportToFileTask.java:197)
at com.devsmart.android.BackgroundTask.run(BackgroundTask.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
2022-01-23 18:50:18,715 [ main] INFO ExportActivity : onProgressUpdate: 2 / 4
2022-01-23 18:50:18,735 [Thread 1] ERROR c.s.e.ExportToFileTask : Error loading test result:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
at com.sciaps.export.ExportToFileTask.onBackground(ExportToFileTask.java:197)
at com.devsmart.android.BackgroundTask.run(BackgroundTask.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
2022-01-23 18:50:18,736 [ main] INFO ExportActivity : onProgressUpdate: 3 / 4
2022-01-23 18:50:18,755 [Thread 1] ERROR c.s.e.ExportToFileTask : Error loading test result:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
at com.sciaps.export.ExportToFileTask.onBackground(ExportToFileTask.java:197)
at com.devsmart.android.BackgroundTask.run(BackgroundTask.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
2022-01-23 18:50:18,757 [ main] INFO ExportActivity : onProgressUpdate: 4 / 4
2022-01-23 18:50:18,770 [Thread 1] ERROR c.s.e.ExportToFileTask : Error loading test result:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
at com.sciaps.export.ExportToFileTask.onBackground(ExportToFileTask.java:197)
at com.devsmart.android.BackgroundTask.run(BackgroundTask.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
2022-01-23 18:50:26,111 [ main] INFO WLCalLog : start WL Cal check
As a test, I set the Defaut template to `Raw` for `Spectra Format`. This was similar to above. I could view the spectra immediately after taking a sample. But if I went to the top main menu, then to `Results` and viewed it there, the sample was available, but the spectra wasn't. Doing an export showed this in the logs:
```
2022-01-23 18:50:16,102 [ main] INFO WLCalLog : start WL Cal check
2022-01-23 18:50:18,681 [ main] INFO ExportActivity : onProgressUpdate: 1 / 4
2022-01-23 18:50:18,708 [Thread 1] ERROR c.s.e.ExportToFileTask : Error loading test result:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
at com.sciaps.export.ExportToFileTask.onBackground(ExportToFileTask.java:197)
at com.devsmart.android.BackgroundTask.run(BackgroundTask.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
2022-01-23 18:50:18,715 [ main] INFO ExportActivity : onProgressUpdate: 2 / 4
2022-01-23 18:50:18,735 [Thread 1] ERROR c.s.e.ExportToFileTask : Error loading test result:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
at com.sciaps.export.ExportToFileTask.onBackground(ExportToFileTask.java:197)
at com.devsmart.android.BackgroundTask.run(BackgroundTask.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
2022-01-23 18:50:18,736 [ main] INFO ExportActivity : onProgressUpdate: 3 / 4
2022-01-23 18:50:18,755 [Thread 1] ERROR c.s.e.ExportToFileTask : Error loading test result:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
at com.sciaps.export.ExportToFileTask.onBackground(ExportToFileTask.java:197)
at com.devsmart.android.BackgroundTask.run(BackgroundTask.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
2022-01-23 18:50:18,757 [ main] INFO ExportActivity : onProgressUpdate: 4 / 4
2022-01-23 18:50:18,770 [Thread 1] ERROR c.s.e.ExportToFileTask : Error loading test result:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
at com.sciaps.export.ExportToFileTask.onBackground(ExportToFileTask.java:197)
at com.devsmart.android.BackgroundTask.run(BackgroundTask.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
2022-01-23 18:50:26,111 [ main] INFO WLCalLog : start WL Cal check
```
I did another test sample to export spectra using the Element Pro application. I deleted all of the days samples and did a single sample for export. It exported the CSV, but not the spectra. The spectra also isn't visible on the device under Results when viewing the sample. From logs:
2022-01-23 19:23:02,156 [hread 10] ERROR c.s.e.ExportToFileTask : Error loading test result:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
at com.sciaps.export.ExportToFileTask.onBackground(ExportToFileTask.java:197)
at com.devsmart.android.BackgroundTask.run(BackgroundTask.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
2022-01-23 19:23:02,178 [ main] INFO ExportActivity : onProgressUpdate: 1 / 1
I did another test sample to export spectra using the Element Pro application. I deleted all of the days samples and did a single sample for export. It exported the CSV, but not the spectra. The spectra also isn't visible on the device under `Results` when viewing the sample. From logs:
```
2022-01-23 19:23:02,156 [hread 10] ERROR c.s.e.ExportToFileTask : Error loading test result:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
at com.sciaps.export.ExportToFileTask.onBackground(ExportToFileTask.java:197)
at com.devsmart.android.BackgroundTask.run(BackgroundTask.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
2022-01-23 19:23:02,178 [ main] INFO ExportActivity : onProgressUpdate: 1 / 1
```
2.1. Format of the LIBS Spectra Files
Concerning data acquisition, the spectra can be directly displayed on the portable tool
just after the analyses and the mean spectra are provided on the Profile Builder (internal
software). These LIBS data (spectra) can be exported from the device to the user’s computer
by opening the communication between the LIBS and the computer (USB connection or
Wi-Fi). Different options are possible such as raw LIBS spectra, mean raw spectra, or
all individual and/or mean spectra calibrated in wavelength. Here, two different kinds
of spectra, obtained after cleaning the laser shots to avoid any dust contamination, are
available in this dataset (as downloaded from the LIBS tool):
(i) Firstly, 4362 LIBS files correspond to the raw LIBS spectra with no processing
treatment; thus, each spectra value corresponds to a point (corresponding to several laser
shots) on the samples. These spectra values are not calibrated in wavelengths; thus, the
identification of the elements is difficult due to potential shifts in nm as a result of the detectors. The raw spectra correspond to the LIBS spectra obtained at each point, are recorded
in csv format, and they correspond to three columns: the first for pixels, the second for the
wavelengths, and the last for the intensity (arbitrary intensity, counts on the detector), with
the column titles being “pixel”, “wavelength”, and “intensity”. For the raw data, the initial
format was built as IDmineral_yearmonthday_hour_PM_Spectrumnumber_PixelData.csv.
These spectra can be downloaded from seven separate folders with explicit names that
Data 2021, 6, 68 4 of 12
correspond to the providers and/or matrices (i.e., Univ. Lorraine, Canada, Brazil, GFZ,
thin sections, powders, etc.). The open access website of ORDaR (OTELo Research Data
Repository) is https://doi.org/10.24396/ORDAR-65 (accessed on 21 June 2021).
(ii) Secondly, 369 average LIBS spectra values calculated for each area are available. It
should be highlighted that these LIBS spectra were directly recorded from the handheld
LIBS tool and the spectra were calibrated in wavelength in order to facilitate element
identification (as the element peaks are very narrow) by adding artificial pixels. The LIBS
mean spectra values also correspond to .csv files. These calibrated spectra are the mean
spectra obtained at several points, and they correspond to two columns: the first for
wavelengths and the second for the intensity (arbitrary intensity, counts on the detector),
with the column titles being “wavelength” and “intensity”. The initial format was built
as IDmineral_yearmonthday_hour_AM_AverageSpectrum.csv; for the spectra associated
with the analysis number, IDmineral_yearmonthday_hour_PM_Spectrumnumber.csv was
used. In this study, the AverageSpectrum.csv was always kept for the major part of the
spectra, and the beginning of the filename corresponds to the mineral ID. A typical name of
these spectra is “IDMineral_20190417_041453_PM_AverageSpectrum” with the ID mineral
at the beginning, the YearMonthDay_hourminutesecond time of the acquisition, and the
notification of the AverageSpectrum. These spectra can be downloaded from the LIBS
LIBS_spectra_DATAPAPER.zip
This paper has some info about it:
*Analyses of Li-Rich Minerals Using Handheld LIBS Tool*
https://www.mdpi.com/2306-5729/6/6/68
```
2.1. Format of the LIBS Spectra Files
Concerning data acquisition, the spectra can be directly displayed on the portable tool
just after the analyses and the mean spectra are provided on the Profile Builder (internal
software). These LIBS data (spectra) can be exported from the device to the user’s computer
by opening the communication between the LIBS and the computer (USB connection or
Wi-Fi). Different options are possible such as raw LIBS spectra, mean raw spectra, or
all individual and/or mean spectra calibrated in wavelength. Here, two different kinds
of spectra, obtained after cleaning the laser shots to avoid any dust contamination, are
available in this dataset (as downloaded from the LIBS tool):
(i) Firstly, 4362 LIBS files correspond to the raw LIBS spectra with no processing
treatment; thus, each spectra value corresponds to a point (corresponding to several laser
shots) on the samples. These spectra values are not calibrated in wavelengths; thus, the
identification of the elements is difficult due to potential shifts in nm as a result of the detectors. The raw spectra correspond to the LIBS spectra obtained at each point, are recorded
in csv format, and they correspond to three columns: the first for pixels, the second for the
wavelengths, and the last for the intensity (arbitrary intensity, counts on the detector), with
the column titles being “pixel”, “wavelength”, and “intensity”. For the raw data, the initial
format was built as IDmineral_yearmonthday_hour_PM_Spectrumnumber_PixelData.csv.
These spectra can be downloaded from seven separate folders with explicit names that
Data 2021, 6, 68 4 of 12
correspond to the providers and/or matrices (i.e., Univ. Lorraine, Canada, Brazil, GFZ,
thin sections, powders, etc.). The open access website of ORDaR (OTELo Research Data
Repository) is https://doi.org/10.24396/ORDAR-65 (accessed on 21 June 2021).
(ii) Secondly, 369 average LIBS spectra values calculated for each area are available. It
should be highlighted that these LIBS spectra were directly recorded from the handheld
LIBS tool and the spectra were calibrated in wavelength in order to facilitate element
identification (as the element peaks are very narrow) by adding artificial pixels. The LIBS
mean spectra values also correspond to .csv files. These calibrated spectra are the mean
spectra obtained at several points, and they correspond to two columns: the first for
wavelengths and the second for the intensity (arbitrary intensity, counts on the detector),
with the column titles being “wavelength” and “intensity”. The initial format was built
as IDmineral_yearmonthday_hour_AM_AverageSpectrum.csv; for the spectra associated
with the analysis number, IDmineral_yearmonthday_hour_PM_Spectrumnumber.csv was
used. In this study, the AverageSpectrum.csv was always kept for the major part of the
spectra, and the beginning of the filename corresponds to the mineral ID. A typical name of
these spectra is “IDMineral_20190417_041453_PM_AverageSpectrum” with the ID mineral
at the beginning, the YearMonthDay_hourminutesecond time of the acquisition, and the
notification of the AverageSpectrum. These spectra can be downloaded from the LIBS
LIBS_spectra_DATAPAPER.zip
```
It looks like the raw files are available here:
https://ordar.otelo.univ-lorraine.fr/record?id=10.24396/ORDAR-65
What are the YUV files? Are they just for sample presence detection or are they the sample used for the creation of the CSV (e.g. YUV is pre-processed raw).
?
Edit: these are probably for sample presence detection.
What are the YUV files? Are they just for sample presence detection or are they the sample used for the creation of the CSV (e.g. YUV is pre-processed raw).
?
Edit: these are probably for sample presence detection.
This is a sample from all 16 CSV files combined, with one file per column. The first column, Pixel Index is the same in every file. The second column, wavelength, is the same in every file. So just the intensity column is different for each file.
*Calibration Curves for Commercial Copper and Aluminum Alloys Using Handheld LaserInduced Breakdown Spectroscopy*
https://www.osti.gov/pages/servlets/purl/1427700
Raw Spectra Acquisition
These commands relate to acquiring spectra only
...
/api/v2/acquire
This endpoint is used to initiate raw spectra acquisition. Individual spectra will be returned if all is passed as the last segment of the URL. Only the final, averaged spectra will be returned if finalis passed as the last segment of the URL. This endpoint requires a mode to be passed which can be obtained from the apps field of the InstrumentId object. Details of the ZAcquisitionResult object can be found here
Example usage:
$ curl -X POST -H "Content-Type: application/json" -d @settings.json --output output.json http://192.168.42.129:8080/api/v2/acquire/all?mode=Alloy
package com.sciaps;
import java.util.List;
public class ZAcquisitionResult {
public String status;
public boolean abortedByUser;
public int errorCode;
public List<ZSpectrum> spectra;
public ZAcquisitionMetadata metadata;
}
New API repo (?).
https://github.com/SciAps/SciApsApi
```
Raw Spectra Acquisition
These commands relate to acquiring spectra only
...
/api/v2/acquire
This endpoint is used to initiate raw spectra acquisition. Individual spectra will be returned if all is passed as the last segment of the URL. Only the final, averaged spectra will be returned if finalis passed as the last segment of the URL. This endpoint requires a mode to be passed which can be obtained from the apps field of the InstrumentId object. Details of the ZAcquisitionResult object can be found here
Example usage:
$ curl -X POST -H "Content-Type: application/json" -d @settings.json --output output.json http://192.168.42.129:8080/api/v2/acquire/all?mode=Alloy
```
Links to:
https://github.com/SciAps/SciApsApi/blob/master/api/src/main/java/com/sciaps/ZAcquisitionResult.java
Contents:
```
package com.sciaps;
import java.util.List;
public class ZAcquisitionResult {
public String status;
public boolean abortedByUser;
public int errorCode;
public List<ZSpectrum> spectra;
public ZAcquisitionMetadata metadata;
}
```
The device gives itself the static IP 192.168.42.129. It still listens with the webserver on all ports. The device itself has curl on it. So you can run that directly on the device, using that static IP as a test as well (e.g. there's nothing else in between could cause an issue). That also gives 501 Not Implemented.
root@ngl:/ # curl -v http://192.168.42.129:8080/api/v2/id
* About to connect() to 192.168.42.129 port 8080 (#0)
* Trying 192.168.42.129... connected
* Connected to 192.168.42.129 (192.168.42.129) port 8080 (#0)
> GET /api/v2/id HTTP/1.1
> User-Agent: curl/7.21.3 (arm-unknown-eabi) libcurl/7.21.3 OpenSSL/1.0.1j zlib/1.2.8
> Host: 192.168.42.129:8080
> Accept: */*
>
< HTTP/1.1 501 Not Implemented
< Date: Tue, 25 Jan 2022 16:05:54 GMT+00:00
< Content-Length: 0
< Connection: Close
<
* Closing connection #0
The device gives itself the static IP `192.168.42.129`. It still listens with the webserver on all ports. The device itself has `curl` on it. So you can run that directly on the device, using that static IP as a test as well (e.g. there's nothing else in between could cause an issue). That also gives `501 Not Implemented`.
```
root@ngl:/ # curl -v http://192.168.42.129:8080/api/v2/id
* About to connect() to 192.168.42.129 port 8080 (#0)
* Trying 192.168.42.129... connected
* Connected to 192.168.42.129 (192.168.42.129) port 8080 (#0)
> GET /api/v2/id HTTP/1.1
> User-Agent: curl/7.21.3 (arm-unknown-eabi) libcurl/7.21.3 OpenSSL/1.0.1j zlib/1.2.8
> Host: 192.168.42.129:8080
> Accept: */*
>
< HTTP/1.1 501 Not Implemented
< Date: Tue, 25 Jan 2022 16:05:54 GMT+00:00
< Content-Length: 0
< Connection: Close
<
* Closing connection #0
```
It works in a similar way to the LIBS model, but it slightly different. For setting up an export, it just has a checkbox to Export Spectra, it doesn't give an option for which type (at least not in the same spot as on the LIBS model).
The X-555 does export the spectra as it should though. It is in mca format:
I have the X-555 XRF model available now.
It works in a similar way to the LIBS model, but it slightly different. For setting up an export, it just has a checkbox to `Export Spectra`, it doesn't give an option for which type (at least not in the same spot as on the LIBS model).
The X-555 does export the spectra as it should though. It is in `mca` format:
```
root@ngx:/ # ls -l /storage/sdcard0/export/*
-rwxrwxr-x root sdcard_rw 77 2022-01-27 15:19 2022.01.27.csv
-rwxrwxr-x root sdcard_rw 0 2022-01-27 15:19 0000002-0 2022.01.27.15.19.mca
```
This is the error in the logs when the X-555 tries to export:
2022-01-27 15:19:57,322 [Thread 6] ERROR c.s.x.d.ExportBatchMCA : error exporting test#2-0: {}
java.lang.ArrayIndexOutOfBoundsException: length=4096; index=4096
at com.sciaps.xrf.data.ExportMCA.write(ExportMCA.java:137)
at com.sciaps.xrf.data.ExportMCA.writeToFile(ExportMCA.java:120)
at com.sciaps.xrf.data.ExportBatchMCA.exportResult(ExportBatchMCA.java:180)
at com.sciaps.xrf.export.ExportCsvBackgroundTask.exportSpectra(ExportCsvBackgroundTask.java:168)
at com.sciaps.xrf.export.ExportCsvBackgroundTask.exportOneTestResult(ExportCsvBackgroundTask.java:192)
at com.sciaps.xrf.export.ExportCsvBackgroundTask.onBackground(ExportCsvBackgroundTask.java:80)
at com.devsmart.android.BackgroundTask.run(BackgroundTask.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
This is the error in the logs when the X-555 tries to export:
```
2022-01-27 15:19:57,322 [Thread 6] ERROR c.s.x.d.ExportBatchMCA : error exporting test#2-0: {}
java.lang.ArrayIndexOutOfBoundsException: length=4096; index=4096
at com.sciaps.xrf.data.ExportMCA.write(ExportMCA.java:137)
at com.sciaps.xrf.data.ExportMCA.writeToFile(ExportMCA.java:120)
at com.sciaps.xrf.data.ExportBatchMCA.exportResult(ExportBatchMCA.java:180)
at com.sciaps.xrf.export.ExportCsvBackgroundTask.exportSpectra(ExportCsvBackgroundTask.java:168)
at com.sciaps.xrf.export.ExportCsvBackgroundTask.exportOneTestResult(ExportCsvBackgroundTask.java:192)
at com.sciaps.xrf.export.ExportCsvBackgroundTask.onBackground(ExportCsvBackgroundTask.java:80)
at com.devsmart.android.BackgroundTask.run(BackgroundTask.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
```
This is true when using both Alloy and Soil applications. The Soil application has it's own template, which is also set to Export Spectra by default. But it too exports zero byte files. Examples so far:
The default profile on the X-555 has `Export Spectra` enabled by default. It is exporting files of zero bytes:
```
-rwxrwxr-x root sdcard_rw 0 2022-01-27 15:33 0000002-0 2022.01.27.15.19.mca
```
This is true when using both `Alloy` and `Soil` applications. The `Soil` application has it's own template, which is also set to `Export Spectra` by default. But it too exports zero byte files. Examples so far:
```
root@ngx:/ # ls -l /sdcard/export/spectra/
-rwxrwxr-x root sdcard_rw 0 2022-01-27 15:33 0000002-0 2022.01.27.15.19.mca
-rwxrwxr-x root sdcard_rw 0 2022-01-27 17:28 0000004-0 2022.01.27.17.27.mca
-rwxrwxr-x root sdcard_rw 0 2022-01-27 17:28 0000004-1 2022.01.27.17.27.mca
-rwxrwxr-x root sdcard_rw 0 2022-01-27 17:28 0000004-2 2022.01.27.17.27.mca
```
Note, with the X-555 it does dispay the spectra properly both after acquiring the sample, and when viewing it in Results. The Z-903 won't display the spectra correctly in Results nor in export. So they have slightly different problems.
Note, with the X-555 it does dispay the spectra properly both after acquiring the sample, and when viewing it in `Results`. The Z-903 won't display the spectra correctly in `Results` nor in export. So they have slightly different problems.
The X-555 gives the same 501 Not Implemented when using the API. It is able to get an IP via wifi and start the service on port 8080, which answers, but always 501.
root@ngx:/ # curl -v http://192.168.42.129:8080/api/v2/id
* About to connect() to 192.168.42.129 port 8080 (#0)
* Trying 192.168.42.129... connected
* Connected to 192.168.42.129 (192.168.42.129) port 8080 (#0)
> GET /api/v2/id HTTP/1.1
> User-Agent: curl/7.21.3 (arm-unknown-eabi) libcurl/7.21.3 OpenSSL/1.0.1j zlib/1.2.8
> Host: 192.168.42.129:8080
> Accept: */*
>
< HTTP/1.1 501 Not Implemented
< Date: Thu, 27 Jan 2022 22:20:41 GMT+00:00
< Content-Length: 0
< Connection: Close
<
* Closing connection #0
The X-555 gives the same `501 Not Implemented` when using the API. It is able to get an IP via wifi and start the service on port `8080`, which answers, but always `501`.
```
root@ngx:/ # curl -v http://192.168.42.129:8080/api/v2/id
* About to connect() to 192.168.42.129 port 8080 (#0)
* Trying 192.168.42.129... connected
* Connected to 192.168.42.129 (192.168.42.129) port 8080 (#0)
> GET /api/v2/id HTTP/1.1
> User-Agent: curl/7.21.3 (arm-unknown-eabi) libcurl/7.21.3 OpenSSL/1.0.1j zlib/1.2.8
> Host: 192.168.42.129:8080
> Accept: */*
>
< HTTP/1.1 501 Not Implemented
< Date: Thu, 27 Jan 2022 22:20:41 GMT+00:00
< Content-Length: 0
< Connection: Close
<
* Closing connection #0
```
The X-555 also apparently statically assigns itself the address 192.168.42.129. This could be a potential conflict on that IP if both units/models are used at the same time on the same network.
Looks like the 192.168.42.129 is in Airdroid.odex.
The X-555 also apparently statically assigns itself the address `192.168.42.129`. This could be a potential conflict on that IP if both units/models are used at the same time on the same network.
Looks like the `192.168.42.129` is in `Airdroid.odex`.
In that same directory there are other main files, and a sqlite database:
root@ngx:/ # ls -l /storage/extsdcard/db/
-rw-rw---- system system 20480 2021-09-22 16:55 UsersAndPermissions.db
-rwxrwxrwx system system 8720 2021-09-22 16:55 UsersAndPermissions.db-journal
-rw------- system system 39592 2022-01-27 17:28 maindb
-rw------- system system 7283645 2022-01-27 17:28 maindb.p
-rw------- system system 16 2022-01-27 19:55 maindb.t
The UsersAndPermissions.db is standard sqlite3 files. I'm not sure the format of the three maindb files, but they have the settings above.
In the file `extsdcard/db/maindb.p` in the `Soil` and the `Empirical` `analysisMode` the `saveAcquisition` field is set to `false`.
```
{"conditions":[{"isEnabled":true,"beamName":"Beam 1","filterPos":4,"keV":55.0,"uA":90.0,"maxTimeMillisec":60000,"lowCountRate":0.0,"maxCountRate":500000.0,"setCountRate":400000.0},{"
isEnabled":true,"beamName":"Beam 2","filterPos":3,"keV":40.0,"uA":50.0,"maxTimeMillisec":60000,"lowCountRate":0.0,"maxCountRate":500000.0,"setCountRate":400000.0},{"isEnabled":true,"
beamName":"Beam 3","filterPos":5,"keV":15.0,"uA":50.0,"maxTimeMillisec":60000,"lowCountRate":0.0,"maxCountRate":500000.0,"setCountRate":400000.0}],"analysisMode":"Soil","saveAcquisit
ion":false,"params":{"modelName":"Soil","empiricalConfig":{"modelNames":[{"modelName":"Soil","beamIndex":0},{"modelName":"Soil","beamIndex":1},{"modelName":"Soil","beamIndex":2}]}},"
isMatrixIDFinished":false}
```
In that same directory there are other main files, and a sqlite database:
```
root@ngx:/ # ls -l /storage/extsdcard/db/
-rw-rw---- system system 20480 2021-09-22 16:55 UsersAndPermissions.db
-rwxrwxrwx system system 8720 2021-09-22 16:55 UsersAndPermissions.db-journal
-rw------- system system 39592 2022-01-27 17:28 maindb
-rw------- system system 7283645 2022-01-27 17:28 maindb.p
-rw------- system system 16 2022-01-27 19:55 maindb.t
```
The `UsersAndPermissions.db` is standard sqlite3 files. I'm not sure the format of the three `maindb` files, but they have the settings above.
The ExportBatchMCA.java and ExportMCA.java functions are in /system/app/XRFAndroid/arm64/XRFAndroid.odex, which looks to be the main app. There are also a few ExportCsv* functions. On the X-555 nothing for raw, so that must just be Z-903.
The `ExportBatchMCA.java` and `ExportMCA.java` functions are in `/system/app/XRFAndroid/arm64/XRFAndroid.odex`, which looks to be the main app. There are also a few `ExportCsv*` functions. On the X-555 nothing for `raw`, so that must just be Z-903.
New tech support agent from SciAps called and said the export needs to be enabled in the Factory Settings. Those are greyed out in the menu and "inaccessible". I need to sign a waver before getting the code to enable changing Factory Settings to allow export. Awaiting document from SciAps.
New tech support agent from SciAps called and said the export needs to be enabled in the `Factory Settings`. Those are greyed out in the menu and "inaccessible". I need to sign a waver before getting the code to enable changing `Factory Settings` to allow export. Awaiting document from SciAps.
Save spectra appears to be turned off on your instruments. To access this setting you will need to login to the factory user, but in having this login, you also have access to the laser safety settings.
We have 2 options; you can send your instruments to me, and we can enable the save spectra option. Or I can give you the factory login information and you can acknowledge that you are responsible for any and all liability associated with changing the factory laser safety settings. Making this a class 3B device and potentially having to register it with the state (I am not familiar with Colorado's laser registration requirements).
SciAps:
> Save spectra appears to be turned off on your instruments. To access this setting you will need to login to the factory user, but in having this login, you also have access to the laser safety settings.
>
>We have 2 options; you can send your instruments to me, and we can enable the save spectra option. Or I can give you the factory login information and you can acknowledge that you are responsible for any and all liability associated with changing the factory laser safety settings. Making this a class 3B device and potentially having to register it with the state (I am not familiar with Colorado's laser registration requirements).
Logged in with the factory PIN provided to the SciAps X-555.
Go to Settings.
There's many more options. There are no new options under Safety Settings. Nothing related to exports nor spectra.
Under Factory Settings, there's temp & time settings, nothing related to exports nor spectra.
Database Management, nothing related to exports nor spectra.
Application Config, which is new, has a few options, nothing related to exports nor spectra.
Camera Settings, nothing related to exports nor spectra.
GPS Connection, nothing related to exports nor spectra.
Test Stand Settings, nothing related to exports nor spectra.
So it doesn't appear to fix the SciAps X-555.
I have user/PIN.
* Logged in with the factory PIN provided to the SciAps X-555.
* Go to `Settings`.
* There's many more options. There are no new options under `Safety Settings`. Nothing related to exports nor spectra.
* Under `Factory Settings`, there's temp & time settings, nothing related to exports nor spectra.
* `Database Management`, nothing related to exports nor spectra.
* `Application Config`, which is new, has a few options, nothing related to exports nor spectra.
* `Camera Settings`, nothing related to exports nor spectra.
* `GPS Connection`, nothing related to exports nor spectra.
* `Test Stand Settings`, nothing related to exports nor spectra.
So it doesn't appear to fix the SciAps X-555.
With the factory user/pin, the SciAps Z-903 has under Settings, Factory Settings, Save Spectra. It was unchecked. Checked now. Will log out and test as regular user.
With the factory user/pin, the SciAps Z-903 has under `Settings`, `Factory Settings`, `Save Spectra`. It was unchecked. Checked now. Will log out and test as regular user.
It looks the Z-903 is now exporting since Save Spectra from Factory Settings was enabled.
root@ngl:/sdcard/export/spectra # head -2 41-raw.csv
wavelength,intensity
187.6075908849017,-6.625000000000038
It looks the Z-903 is now exporting since `Save Spectra` from `Factory Settings` was enabled.
```
root@ngl:/sdcard/export/spectra # head -2 41-raw.csv
wavelength,intensity
187.6075908849017,-6.625000000000038
```
jebba
changed title from Cannot Dump Spectra to Cannot Dump Spectra from SciAps Analyzers5 months ago
This was sent to me March 11th, 2022, but there was never any followup.
Jeff,
Our apologies. I will have someone reach out to you ASAP.
David,
Please follow up with Jeff today. Can you find out exactly what is not working and resolve.
Regards,
Suzanne
This was sent to me March 11th, 2022, but there was never any followup.
```
Jeff,
Our apologies. I will have someone reach out to you ASAP.
David,
Please follow up with Jeff today. Can you find out exactly what is not working and resolve.
Regards,
Suzanne
```
https://www.dropbox.com/s/p8bnyr0e3u94jug/updater_ProdNGXRelease_ngx-v1.3-4-0-gd539b0c.sup?dl=0
I spoke with the software team; their suggestion is to try to reload the software. Attached is the updater.
1. Drop the updater on the root of the SD card
2. Swipe all the way over on the analyzer until you see other apps
3. Select other apps and scroll down until you get to SciAps Updater and select it
4. Scroll until you see the updater you put on the SD card and run it on the analyzer (once done analyzer should reboot by itself)
From SciAps:
```
https://www.dropbox.com/s/p8bnyr0e3u94jug/updater_ProdNGXRelease_ngx-v1.3-4-0-gd539b0c.sup?dl=0
I spoke with the software team; their suggestion is to try to reload the software. Attached is the updater.
1. Drop the updater on the root of the SD card
2. Swipe all the way over on the analyzer until you see other apps
3. Select other apps and scroll down until you get to SciAps Updater and select it
4. Scroll until you see the updater you put on the SD card and run it on the analyzer (once done analyzer should reboot by itself)
```
I updated via the SciAps Update and it automatically rebooted.
A couple minutes later it was booted for login. I logged in.
I hit "Analyze" and "Alloy".
It prompted me for calibration.
I attached the calibration part to the front of the device.
I hit "Calibrate".
It errors:
Attention
Energy calibration failed!
Acquisition for Energy Calibration failed!
Acquisition for Energy Calibration failed with error code (-2). Please contact SciAps.
1. I put the file on the SD card.
2. I updated via the SciAps Update and it automatically rebooted.
3. A couple minutes later it was booted for login. I logged in.
4. I hit "Analyze" and "Alloy".
5. It prompted me for calibration.
6. I attached the calibration part to the front of the device.
7. I hit "Calibrate".
8. It errors:
```
Attention
Energy calibration failed!
Acquisition for Energy Calibration failed!
Acquisition for Energy Calibration failed with error code (-2). Please contact SciAps.
```
Can you run this sup file on the instrument the same way you ran the Software through Sciaps Updater? This should set the detector settings back to the correct settings.
From SciAps:
```
Can you run this sup file on the instrument the same way you ran the Software through Sciaps Updater? This should set the detector settings back to the correct settings.
```
Running:
```
adb push amptek-xrfservice.sup /storage/sdcard0/DCIM
```
I think this is an issue where it is trying to export all three beams in alloy, but your instrument only contains one beam. If you drop this file into the SciAps folder on the SD card, then restart the instrument this should fix that issue.
SciAps writes:
```
I think this is an issue where it is trying to export all three beams in alloy, but your instrument only contains one beam. If you drop this file into the SciAps folder on the SD card, then restart the instrument this should fix that issue.
```
Running:
```
adb push hardware.cfg /mnt/media_rw/sdcard0/sciaps/
```
Here's the units backup config file this should eliminate those error codes.
If the hardware.cfg didn’t fix the analyzer, we are left with two options to get the export working. We can either send it in and have it upgraded in the factory. This should only take less than a day to do and we will pay for shipping, this will give you the latest software that supports csv and mca exports from unit. This software was recently released but due to a platform change the upgrade is not able to be done remotely.
The second option is to try and spin a software one-off release specifically for this unit. This is not a guarantee that it will work it could fix one problem and cause another because we don’t have your exact unit to use and test on, we cannot be sure. This will be the same software overall as your unit is now and will not support csv exporting.
Let me know how you would like to proceed
Options from SciAps to consider:
```
Here's the units backup config file this should eliminate those error codes.
If the hardware.cfg didn’t fix the analyzer, we are left with two options to get the export working. We can either send it in and have it upgraded in the factory. This should only take less than a day to do and we will pay for shipping, this will give you the latest software that supports csv and mca exports from unit. This software was recently released but due to a platform change the upgrade is not able to be done remotely.
The second option is to try and spin a software one-off release specifically for this unit. This is not a guarantee that it will work it could fix one problem and cause another because we don’t have your exact unit to use and test on, we cannot be sure. This will be the same software overall as your unit is now and will not support csv exporting.
Let me know how you would like to proceed
```
SciAps has the device, but never sent an email/call to confirm they received it. I called Jonathan Moller today. He said they had received the device. I spoke with Keith Bowman who said it just required their proprietary Windows software to do the update and it should take 30 minutes, but he also said it was more complicated than that. Bowman also said other customers were complaining about the lack of response from their customer service.
SciAps has the device, but never sent an email/call to confirm they received it. I called Jonathan Moller today. He said they had received the device. I spoke with Keith Bowman who said it just required their proprietary Windows software to do the update and it should take 30 minutes, but he also said it was more complicated than that. Bowman also said other customers were complaining about the lack of response from their customer service.
I did "Analyze". I did an export. It exported an .mca file. The file just had one column, I thought it was supposed to have two.
Excerpt from .mca
File Version = 2
MCA data = <Generated by ProSpect - v1.0.22>
Bin Size = .02
Board Type = KETEK DPP2
Peaking Time = 0.20
Number MCA Bins = 2048
Baseline (0-4095) = 0
Energy (0-4095) = 0
Trigger (0-4095) = 50
Baseline Average Length = 512
Events = 0
Input Count Rate = 0
Output Count Rate = 0
Manufacturer = Sciaps
Energy scale slope = 24.42707843501781
Energy scale offset = -3.7291719067252416
Livetime = 7.548
Realtime = 9.508
Monitored Tube keV = 39.778
Monitored Tube uA = 25.5
2048
0
0
0
0
...
48
45
41
33
19
26
24
19
18
19
14
21
17
25
...
2
0
0
1
1
1
0
0
1
0
I received the unit.
I did "Analyze". I did an export. It exported an `.mca` file. The file just had one column, I thought it was supposed to have two.
Excerpt from `.mca`
```
File Version = 2
MCA data = <Generated by ProSpect - v1.0.22>
Bin Size = .02
Board Type = KETEK DPP2
Peaking Time = 0.20
Number MCA Bins = 2048
Baseline (0-4095) = 0
Energy (0-4095) = 0
Trigger (0-4095) = 50
Baseline Average Length = 512
Events = 0
Input Count Rate = 0
Output Count Rate = 0
Manufacturer = Sciaps
Energy scale slope = 24.42707843501781
Energy scale offset = -3.7291719067252416
Livetime = 7.548
Realtime = 9.508
Monitored Tube keV = 39.778
Monitored Tube uA = 25.5
2048
0
0
0
0
...
48
45
41
33
19
26
24
19
18
19
14
21
17
25
...
2
0
0
1
1
1
0
0
1
0
```
Procedure:
Power on, log in, main menu.
Results
Three dots --> Templates Setup
New Template: "Raw"
This may be where I'm failing. Setup Fields (Checked):
Date
Test #
Sample ID
Grade Match <--- Probably can uncheck that, but doesn't matter (?)
Then a number of unchecked boxes below (e.g. lat/lon).
Chem Elements(32)
Formulas(0) Left at default, unchecked.
Arrange order. Default.
Spectra Format: Raw <--- This is what I think is the important one to set, but it doesn't appear to have an effect.
Uncertainty, Default unchecked.
Test Info, Default is unchecked. I have it checked. OK?
Save that template.
Then back at main menu, go to Analyze.
I've tried both Geochem/Element Pro, for this example I'll do Geochem. Does it matter?
I guess here I should be telling Geochem to use the template? Or is that after acquisition?
Take a sample. After sampling, it displays the table of elements' %.
Click the round graph icon and I can see the spectra display. That is the raw dump I'm trying to get.
Go back to top main menu --> Results.
At this point, I think I could just select the one I want to dump, but following your example from yesterday, go to the three dots "Filter by Date" and select today's date.
"Show 5 results" (or however many)
Click export/arrow icon.
Format: Excel.
Use default filename, overwrite file.
Choose Template: Raw <--- This seems like the important one, matching to template above.
Start Export: "Files have exported successfully"
View the exports files, and see there is the file:
So that appears to export ok.
That directory is empty. That is where I was expecting to find the exported file, but I've done something wrong. I've tried a few variations of the above.
One thing of note, if you do this:
Top main menu --> Results
Select any of the sample results.
Click the round spectra icon.
There is no spectra data displayed.
When this is viewed immediately after the sample is taken, the sample data is there. When this is viewed later, it isn't there. So it can't export it because it doesn't have it available for export.
This directory is also empty. It may store the spectra, pre-export (?).
Doing a sample finds the peaks ok, as can be seen by hitting the spectra icon immediately after taking a sample (but not later when viewing the sample). This is from the logs while taking a sample:
As a test, I set the Defaut template to
Raw
forSpectra Format
. This was similar to above. I could view the spectra immediately after taking a sample. But if I went to the top main menu, then toResults
and viewed it there, the sample was available, but the spectra wasn't. Doing an export showed this in the logs:I did another test sample to export spectra using the Element Pro application. I deleted all of the days samples and did a single sample for export. It exported the CSV, but not the spectra. The spectra also isn't visible on the device under
Results
when viewing the sample. From logs:This paper has some info about it:
Analyses of Li-Rich Minerals Using Handheld LIBS Tool
https://www.mdpi.com/2306-5729/6/6/68
It looks like the raw files are available here:
https://ordar.otelo.univ-lorraine.fr/record?id=10.24396/ORDAR-65
This is an excerpt of the CSV file:
Each file starts at one (e.g. isn't one huge multi-part file):
Q: What does each file represent? 16 sample parts?
NIST LIBS Database
https://physics.nist.gov/PhysRefData/ASD/LIBS/libs-form.html
This is one sample from the free dump linked above:
Each file has the same header:
16x
files by8264
lines is132,224
.What are the YUV files? Are they just for sample presence detection or are they the sample used for the creation of the CSV (e.g. YUV is pre-processed raw).
?
Edit: these are probably for sample presence detection.
This is a sample from all 16 CSV files combined, with one file per column. The first column,
Pixel Index
is the same in every file. The second column,wavelength
, is the same in every file. So just theintensity
column is different for each file.Calibration Curves for Commercial Copper and Aluminum Alloys Using Handheld LaserInduced Breakdown Spectroscopy
https://www.osti.gov/pages/servlets/purl/1427700
New API repo (?).
https://github.com/SciAps/SciApsApi
Links to:
https://github.com/SciAps/SciApsApi/blob/master/api/src/main/java/com/sciaps/ZAcquisitionResult.java
Contents:
To get remote web listening:
Go to top main menu
Swipe right
Remote Service
Should show IP/port.
It looks like the API isn't implemented though? Basic queries return
not implemented
.The device gives itself the static IP
192.168.42.129
. It still listens with the webserver on all ports. The device itself hascurl
on it. So you can run that directly on the device, using that static IP as a test as well (e.g. there's nothing else in between could cause an issue). That also gives501 Not Implemented
.The URL endpoint appears correct:
https://github.com/SciAps/SciApsApi/blob/master/client/app/src/main/java/com/sciaps/apidemo/SciApsClient.java#L59
I have the X-555 XRF model available now.
It works in a similar way to the LIBS model, but it slightly different. For setting up an export, it just has a checkbox to
Export Spectra
, it doesn't give an option for which type (at least not in the same spot as on the LIBS model).The X-555 does export the spectra as it should though. It is in
mca
format:Gah, it looks like that spectrum file is zero bytes though, so no data. :(
This is the error in the logs when the X-555 tries to export:
The default profile on the X-555 has
Export Spectra
enabled by default. It is exporting files of zero bytes:This is true when using both
Alloy
andSoil
applications. TheSoil
application has it's own template, which is also set toExport Spectra
by default. But it too exports zero byte files. Examples so far:Note, with the X-555 it does dispay the spectra properly both after acquiring the sample, and when viewing it in
Results
. The Z-903 won't display the spectra correctly inResults
nor in export. So they have slightly different problems.The X-555 gives the same
501 Not Implemented
when using the API. It is able to get an IP via wifi and start the service on port8080
, which answers, but always501
.The X-555 also apparently statically assigns itself the address
192.168.42.129
. This could be a potential conflict on that IP if both units/models are used at the same time on the same network.Looks like the
192.168.42.129
is inAirdroid.odex
.In the file
extsdcard/db/maindb.p
in theSoil
and theEmpirical
analysisMode
thesaveAcquisition
field is set tofalse
.In that same directory there are other main files, and a sqlite database:
The
UsersAndPermissions.db
is standard sqlite3 files. I'm not sure the format of the threemaindb
files, but they have the settings above.The
ExportBatchMCA.java
andExportMCA.java
functions are in/system/app/XRFAndroid/arm64/XRFAndroid.odex
, which looks to be the main app. There are also a fewExportCsv*
functions. On the X-555 nothing forraw
, so that must just be Z-903.Other SciAps customers see same issue.
No word from Sciaps.
New tech support agent from SciAps called and said the export needs to be enabled in the
Factory Settings
. Those are greyed out in the menu and "inaccessible". I need to sign a waver before getting the code to enable changingFactory Settings
to allow export. Awaiting document from SciAps.SciAps:
Sent ACK.
I have user/PIN.
Logged in with the factory PIN provided to the SciAps X-555.
Go to
Settings
.There's many more options. There are no new options under
Safety Settings
. Nothing related to exports nor spectra.Under
Factory Settings
, there's temp & time settings, nothing related to exports nor spectra.Database Management
, nothing related to exports nor spectra.Application Config
, which is new, has a few options, nothing related to exports nor spectra.Camera Settings
, nothing related to exports nor spectra.GPS Connection
, nothing related to exports nor spectra.Test Stand Settings
, nothing related to exports nor spectra.So it doesn't appear to fix the SciAps X-555.
With the factory user/pin, the SciAps Z-903 has under
Settings
,Factory Settings
,Save Spectra
. It was unchecked. Checked now. Will log out and test as regular user.It looks the Z-903 is now exporting since
Save Spectra
fromFactory Settings
was enabled.Cannot Dump Spectrato Cannot Dump Spectra from SciAps Analyzers 5 months agoThis was sent to me March 11th, 2022, but there was never any followup.
I spoke with Jonathan today. He's going to read up, talk to software, and give me a call tomorrow.
From SciAps:
SciAps requested the
xrf.log
file, which I sent. They said they need more time to analyze it and will call/email.From SciAps:
Running:
It did the update and rebooted. Calibration now appears to work.
It still exports zero byte file:
SciAps writes:
Running:
Pushed hardware.cfg to sciap's forlder on SD card.
Power off.
Power on.
Click Analyze.
Click Alloy.
Gives error:
Options from SciAps to consider:
SciAps has the device, but never sent an email/call to confirm they received it. I called Jonathan Moller today. He said they had received the device. I spoke with Keith Bowman who said it just required their proprietary Windows software to do the update and it should take 30 minutes, but he also said it was more complicated than that. Bowman also said other customers were complaining about the lack of response from their customer service.
Mike Fuller emails just now saying it will be shipped overnight today or Monday.
David Bowman says device is shipping today for delivery tomorrow.
Received X555 unit. Looks ok. I haven't plugged it it. The device is cold, waiting for room temp & time.
I received the unit.
I did "Analyze". I did an export. It exported an
.mca
file. The file just had one column, I thought it was supposed to have two.Excerpt from
.mca
The device takes 2048 samples each analysis. See attached spreadsheet column provided by SciAps for static values to match with MCA dumps.