An X-ray fluorescence spectrometer configured to irradiate a sample with primary X-rays to determine at least one of a quantitative value of a content of a component in the sample and a quantitative value of a thickness of the sample on the basis of measured intensities of secondary X-rays generated,
- the X-ray fluorescence spectrometer comprising a counting time calculation unit configured to calculate a counting time for each of measurement lines which are secondary X-rays having intensities to be measured,
- wherein the counting time calculation unit is configured to:
- measure a plurality of standard samples to determine calibration curve constants and correction coefficients, or instrument sensitivity constants for a predetermined quantitative calculation method, each of the standard samples being measured in a predetermined provisional counting time;
- when a quantification precision is specified for each of quantitative values of one standard sample, set a measured intensity of each of the measurement lines as a reference intensity;
- by the predetermined quantitative calculation method, determine each of the quantitative values by using the reference intensities and repeatedly perform a first procedure of determining each of the quantitative values in a case where only the measured intensity of one of the measurement lines is changed by a predetermined value, to calculate a ratio of a change in each of the quantitative values to the predetermined value as a quantitative-value-to-intensity change ratio, the one of the measurement lines having the measured intensity to be changed being different on each repetition of the first procedure;
- for each measurement line having the changed measured intensity, calculate an intensity precision of each of the quantitative values after change by dividing the specified quantification precision by the corresponding quantitative-value-to-intensity change ratio and set an intensity precision having a smallest absolute value as a provisional necessary intensity precision;
- for each of the measurement lines, calculate a counting time for obtaining the provisional necessary intensity precision on the basis of the reference intensity;
- for each of the quantitative values, calculate an estimated quantification precision on the basis of the provisional necessary intensity precision of each of the measurement lines and the corresponding quantitative-value-to-intensity change ratio and compare the estimated quantification precision with the specified quantification precision;
- if all the quantitative values have estimated quantification precisions satisfying specified quantification precisions, proceed to a step of outputting a final counting time, and if not, proceed to the following step;
- for each quantitative value having the estimated quantification precision not satisfying the specified quantification precision, repeatedly perform a second procedure of calculating an intensity precision of each of the measurement lines in a case where only a counting time of one of the measurement lines is increased by a predetermined time on the basis of the reference intensity, calculating an estimated quantification precision on the basis of the calculated intensity precision of each of the measurement lines and the corresponding quantitative-value-to-intensity change ratio, setting a difference between the calculated estimated quantification precision and the previously calculated estimated quantification precision as an expected improved quantification precision, and calculating a necessary additional time by multiplying a ratio of a difference between the previously calculated estimated quantification precision and the specified quantification precision to the expected improved quantification precision by the predetermined time, the one of the measurement lines having the counting time to be increased being different on each repetition of the second procedure, increase only the counting time of one measurement line having a shortest necessary additional time by a predetermined multiple of the corresponding necessary additional time to calculate an intensity precision of each of the measurement lines, and calculate and update an estimated quantification precision;
- if the updated estimated quantification precision does not satisfy the specified quantification precision, repeatedly update the estimated quantification precision until the updated quantification precision satisfies the specified quantification precision, and if the updated quantification precision satisfies the specified quantification precision, proceed to the following step;
- if there is any quantitative value having a latest estimated quantification precision not satisfying the specified quantification precision, proceed to a step of updating the estimated quantification precision of that quantitative value, and if not, proceed to the following step;
- and
- adjust a latest counting time of each of the measurement lines to predetermined digits in a predetermined unit and output the adjusted latest counting time as a final counting time.