You are on page 1of 22

LSRM Ltd, 1a Lyalovskoe highway, Mendeleevo, Solnechnogorsky

district, Moscow region, Russia, 141570


Tel/Fax: +7 (495) 660-16-14
www.lsrm.ru E-mail: lsrm@lsrm.ru

SpectraLineXX Software.
Scenarios. User’s Manual

Mendeleevo

2011
ii

© Copyright. All rights reserved.

The information in this document describes the product as accurately as possible, but is subject to
change without notice. User should follow this manual. Under the copyright laws, this documentation may
not be reproduced or transmitted in any form, electronic or mechanical, including photocopying,
recording, storing in an information retrieval system, or translating, in whole or in part, without the prior
written consent of “LSRM” Ltd. The material in this document, including all information, pictures, graphics
and text, is the property of “LSRM” Ltd.

"LSRM" Ltd, 1a Lyalovskoe highway, Mendeleevo,


Solnechnogorsky district, Moscow region, Russia, 141570
WWW: http://www.lsrm.ru
Tel/Fax: +7 (495) 660-16-14
E-mail: lsrm@lsrm.ru

The following conventions are used in this manual:


 bold text denotes the names of menus, buttons, or other interface elements.
 italic text denotes references to other documents, sections, or main terms, used in this manual.
 bold italic text denotes notes or warnings.
 sign * denotes interface elements which are not in use now.

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


iii

Contents

1 Introduction ..................................................................................................................................... 1-1


2 Scenarios Format ........................................................................................................................... 2-1
3 Commands ...................................................................................................................................... 3-2
Activity calculation ................................................................................................................................. 3-2
Activity calculation for alpha-configuration ............................................................................................ 3-2
By-channel subtraction of the background spectrum ............................................................................ 3-4
Registration efficiency calculation ......................................................................................................... 3-4
Energy calibration ................................................................................................................................. 3-4
FWHM calibration .................................................................................................................................. 3-6
Energy calibration by two zones ........................................................................................................... 3-6
Efficiency recalibration .......................................................................................................................... 3-6
Definition of patterns for gamma-peaks ................................................................................................ 3-6
Definition of patterns for x-rays peaks bellied with Lorentz distribution ................................................ 3-6
Calculation of pattern section ................................................................................................................ 3-7
Fitting..................................................................................................................................................... 3-7
Library loading ....................................................................................................................................... 3-7
Zones loading ........................................................................................................................................ 3-7
Background spectrum loading .............................................................................................................. 3-8
Calibration loading into the spectrum .................................................................................................... 3-8
Efficiency section loading ...................................................................................................................... 3-8
Message box output .............................................................................................................................. 3-8
Saving of the results of peaks search into a file ................................................................................... 3-8
Reset the spectrum or configuration parameters .................................................................................. 3-8
Starting of spectrum acquisition in opened analyzer window ............................................................. 3-10
Exit from scenario ............................................................................................................................... 3-10
Peaks search ...................................................................................................................................... 3-10
Peaks search and fitting ...................................................................................................................... 3-10
Placing a marker in specified spectrum area ...................................................................................... 3-10
Display of one of program windows .................................................................................................... 3-10
Energy calibration for one point .......................................................................................................... 3-12
The spectrum calibration saving to the configuration parameters ...................................................... 3-12
Efficiency saving ................................................................................................................................. 3-12
The active spectrum saving to database ............................................................................................ 3-12
Spectrum peaks clearing..................................................................................................................... 3-12
External application running ................................................................................................................ 3-12
Active spectrum saving to file ............................................................................................................. 3-13
4 Variables ........................................................................................................................................ 4-14
$leftpeakbound .................................................................................................................................... 4-14
$rightpeakbound ................................................................................................................................. 4-14
$chbegin .............................................................................................................................................. 4-14
$chend................................................................................................................................................. 4-14
$energybegin ...................................................................................................................................... 4-14
$energyend ......................................................................................................................................... 4-14
$sens ................................................................................................................................................... 4-14
$library................................................................................................................................................. 4-14
$efffile .................................................................................................................................................. 4-14
$patternfile .......................................................................................................................................... 4-14
$minimize ............................................................................................................................................ 4-14
$idwin .................................................................................................................................................. 4-14
$fwhmfile ............................................................................................................................................. 4-14
$energyfile ........................................................................................................................................... 4-14
$comment ........................................................................................................................................... 4-14
$detector ............................................................................................................................................. 4-14
$geometry ........................................................................................................................................... 4-14
$spepattern ......................................................................................................................................... 4-14
$spemestype ....................................................................................................................................... 4-14
$applzone ............................................................................................................................................ 4-14
5 Examples of Scenarios ................................................................................................................ 5-14
© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual
iv

Appendix I References ...................................................................................................................... I-1


Appendix II Service and Support ..................................................................................................... II-1

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Introduction 1-1

1 Introduction

This manual contains a description of scenarios – special-formatted sequences of spectrum processing


operations.

This manual contains the following chapters:


 Scenarios Format – scenarios format description,
 Commands – commands description,
 Variables – variables list,
 Examples of Scenarios - examples of scenarios.
 Appendix I References – list of referenced documents,
 Appendix II Service and Support – contact information.

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Scenarios Format 2-1

2 Scenarios Format
To make it easier for you to perform several spectrum processing operations they can be saved to
a .lsc – file in the developed scenario format. Scenarios files are located in the directory specified by the
Scenario folder configuration setting of the Files location category (see [1] ).
The sequence of the spectrum processing operations is saved to the .lsc-file in text format.
Variables, commands and comments are used to write scenarios.

Variable The „$‟ character must be the first variable character.


Variable format: $varname=value
Command Any character can be the first, except for ';' and '$'.
Command format: command(par1, par2, ..., parN).
Comment The „;‟ character must be the first comment character.

Note: The list of available commands can be changed depending on the program version and delivery
set. Contact our support service for detailed information.

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Scenarios Format 3-2

3 Commands
activity(
Activity calculation
methodname, – method name
showresults - activity calculation results indication flag
);
Parameters:
methodname – method name. The following methods are
available:
- Matrix – calculation on the basis of the matrix algorithm;
- ZoneByZone – sequential zones fitting with calculation of
nuclides activity;
- AllZones – is similar to ZoneByZone method but all zones
are fitted simultaneously;
- AllZonesSew – is similar to AllZones method but the
additional restriction is imposed at fitting: peak background and
its first derivative are continuous in points of intervals boundaries;
Activity calculation methods are detailed in section
«Scenarios of activity calculation» of the document [2].
showresults – activity calculation results indication flag. The
following values are possible:
- 0 or argument absence – calculation results are not shown;
- 1 or any greater than 0 number – calculation results are
shown.
alphaactivity (
Activity calculation for alpha-
methodname, - method name
configuration
[nuclide1 nuclide2 ... nuclideN], - nuclides list
leftenergy, - left processing bound
rightenergy, - right processing bound
inifilename - ini-file with settings
postcalc – post-operations
);
Parameters:
methodname – method name. The following methods are
available:
- alpharad:
- alphalsrm.
Both methods use the function parametric representation for
alpha-spectra processing (see the manual [2]). Spectrum of every
alpha-emitted isotope line is represented by the combination of
asymmetric Gauss distribution, exponent and hyperbola. These
functions are combined using the conditions of the function and
its first derivative continuity. They are different in the way of the


2
- functional minimization and processing rate. The alphalsrm
method requires less time for calculation but it provides reliable
results only if the initial and real model approximations don‟t
diverge considerably. The alpharad method depends lesser on
the initial approximation.
[nuclide1 nuclide2 ... nuclideN] – list of nuclides for activity
calculation in the square brackets separated with white space
or semicolon character. The nuclides library must contain
these nuclides. If the list is empty, the following nuclides are
used (in the priority decreasing order):
- nuclides from the spectrum file;
- nuclides from the CAParam.ini file in the configuration
directory;
- nuclides from the CAParam.ini file in the CalcAlpha directory;
- all library nuclides.
leftenergy, rightenergy – left and right processing bounds in
keV. If not specified, the following values are used (in the
priority decreasing order):
© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual
Scenarios Format 3-3

- values from the spectrum file;


- values from the CAParam.ini file in the configuration
directory;
- values from the CAParam.ini file in the CalcAlpha directory;
Detection efficiency from the spectrum is used. If not specified,
the following values are used (in the priority decreasing order):
- value in accordance with the spectrum geometry, in the
configuration settings;
- the first value in the configuration settings. If no detection
efficiency is specified in the configuration settings, the error
message box is displayed.
inifilename – ini-file with settings. The .ini – file structure should
be the same as the CAParam.ini file structure. If specified, the
values in it substitute the following parameters:
[nuclide1 nuclide2 ... nuclideN], leftenergy, rightenergy.
postcalc – the combination of post-operations flags. The sum of
the following values is calculated::
0 – no operation is executed after activity calculation,
1 – peak pattern section is calculated;
2 – pattern is displayed on the spectrum.
Examples:
alphaactivity(alpharad, [],,,,0) – activity is calculated by the
alpharad method, nuclides from the spectrum and processing
bounds default values are used.
alphaactivity(alpharad, [],,, Alpha\Data\Alpha.ini,0) – the
parameters values are in the Alpha\Data\Alpha.ini file (relative to
the main program directory).
alphaactivity(alpharad, [Pu-238], 5000, 6000,,0) – activity is
calculated by the alpharad method for Pu-238, processing
bounds are 5000 keV and 6000 keV.
alphaactivity(alphalsrm, [U-234 U-236], 4000, 5000,,0) –
activity is calculated by the alphalsrm method for U-234 and U-
236, processing bounds are 4000 keV and 5000 keV.

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Scenarios Format 3-4

background(
By-channel subtraction of the
mode – subtraction flag
background spectrum
);
Parameters:
mode – subtraction flag:
0 – to subtract the background spectrum;
1 – to reset subtraction;
efficiency (
Registration efficiency calculation
idwin, - window in which match of energy values of spectrum
peaks and energy values from the list is searched
[energy1 energy2 … energyN], - energy values list for
construction of registration efficiency curve
[|En1 Ek1 S1|En2;Ek2;S2|EnN; EkN; SN|], - zones
description
[|Nuclide1; Activity1; dActivity1;
SpecificActivity1|NuclideN ActivityN dActivityN
SpecificActivityN|], - nuclides definition
DateAt, - date of nuclide activity measuring (attestation)
Thick, - thickness
DThick – thickness precision
);
Parameters:
idwin – window in which match of energy values of spectrum
peaks and energy values from the list is searched; if it is 0 then
exact match is searched.
[energy1 energy2 … energyN], - energy values list for
construction of registration efficiency curve taken into square
brackets and separated with white space or semicolon
characters.
|En En S| - zones description:
En – the beginning of the zone,
Ek – the end of the zone,
S – polynomial degree.
Values are separated with white space or semicolon, zones
are separated with „|‟ character.
|Nuclide Activity dActivity SpecificActivity|, - nuclides
definition:
Nuclide – the name of nuclide that should be in the spectrum
Activity – activity used for efficiency calculation, if it is
specified as Relative then the value is relative and automatic
sewing will be executed.
dActivity– activity precision (%),
SpecificActivity – activity flag:
0 – absolute activity (Bq)
1 – relative activity (Bq/kg);
absolute activity is taken by default (if this parameter is not
specified).
Nuclides are separated with „|‟ character.
DateAt – measuring (attestation) date in 00-00-0000 format.
Thick – thickness. If it is not specified then it is 0 and DThick = 0.
DThick – thickness precision. Default value is 0.
encalibr(
Energy calibration
degree, - energy calibration polynomial degree
calibrtype, - calibration type
filename, - data file
savefilename, - name of the file for calibration saving
setfile – option for using spectrum as a calibrating one
);
Parameters:
degree – energy calibration polynomial degree (0..5). If there are
too few data points for calibration, the greatest possible degree
is set. The -1 value is used if not specified.
© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual
Scenarios Format 3-5

calibrtype - calibration type:


0 – referenced data from the filename library is used;
1 - filename zones file is loaded and used;
2 – the current “channel – energy” peaks parameters are used
(filename is ignored).
If the filename is not specified the IdentLibraryFile
configuration setting is used.
savefilename – name of the file for calibration saving (if
specified). You can enter file names relative to the main
program directory.
setfile – option for using spectrum as a calibrating one:
0 – calibrating spectrum;
1 – spectrum is not a calibrating one.

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Scenarios Format 3-6

fwcalibr (
FWHM calibration
degree, - FWHM calibration polynomial degree
savefilename - name of the file for calibration saving
setfile – option for using spectrum as a calibrating one
);
Parameters:
degree - FWHM calibration polynomial degree (0..5). If there are
too few data points for calibration, the greatest possible degree
is set. The -1 value is used if not specified.
savefilename - name of the file for calibration saving (if
specified).
setfile – option for using spectrum as a calibrating one:
0 – calibrating spectrum;
1 – spectrum is not a calibrating one.
twozonecalibr (
Energy calibration by two zones
[en1 en2 .. enN], - list of energy values
error, - energy match bounds
lowp, edge, highp – calibration parameters
);
Parameters:
[en1 en2 .. enN] – list of energy values fitting to which peaks
within the limits of error are searched. Energy values are
separated with white spaces and are put into square brackets.
lowp, edge, highp – energy calibration parameters.
edge – calibration zones bound (kEv).
The calibration is saved in current configuration and *.cen-file.
recalibrate (
Efficiency recalibration
idwin, - window in which match of energy values of spectrum
peaks and energy values from the list is searched
[energy1 energy2 … energyN], - energy values list for
recalibration
Thick, - thickness
DThick – thickness precision
);
Parameters:
idwin – window in which match of energy values of spectrum
peaks and energy values from the list is searched; if it is 0 then
exact match is searched.
[energy1 energy2 … energyN], - energy values list for
recalibration taken into square brackets and separated with
white space or semicolon characters.
Thick – thickness. Default value is 0.
DThick – thickness precision. Default value is 0.
gammapatterns(
Definition of patterns for gamma-
idwin, - window in which match of spectrum peaks energies
peaks
and values from the list is searched
[energy1 energy2 ... energyN] – energy values list for
patterns
);
Parameters:
idwin - window in which match of spectrum peaks energies and
values from the list is searched; if it is 0 then exact match is
searched.
[energy1 energy2 ... energyN] – energy values list for patterns
taken into square brackets and separated with white space or
semicolon.
If parameters are not specified then all existing zones are
processed.
xraypatterns (
Definition of patterns for x-rays
[energy1 wenergy1 energy2 wenergy2 ... energyN
peaks bellied with Lorentz
wenergyN] – energy values list for patterns

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Scenarios Format 3-7

distribution );
Parameters:
energyK – energy of Kth gamma-line (kEv)
wenergyK – half-width of Lorentz distribution (Ev) for Kth
gamma-line
These values are put into square brackets and separated with
white spaces or semicolons.
patternsection(
Calculation of pattern section
energy, - energy value for which the section is defined
background, - polynomial degree of the background
step, - step degree
sectiontype, - section type
methodname, - calculation method name
param1, …, paramN – parameters of the method
);
Parameters:
energy – energy value for which the section is defined. A peak
with the nearest energy from the spectrum is chosen.
background – polynomial degree of the background.
step – step degree.
sectiontype – section type:
0 – gamma,
1 – x-ray.
methodname – calculation method name. Names of the
methods:
gauss. Its parameters:
fwhm – half-width of Gauss distribution.
spline. Its parameters:
leftbound – left bound
rightbound – right bound
splinepower – polynomial degree of the spline
smoothcount – amount of smoothing points
leftpoint – left characteristic point
rightpoint – right characteristic point.
logspline. Parameters are the same.
If parameters are not specified they are taken from file
Pattern.ini in spectrum configuration directory.
If a section with this energy already exists it is overwritten.
fit (
Fitting
parameters, - fitting parameters
backgrpower – background polynomial degree
);
Parameters:
parameters – fitting parameters as a combination of FWHM,
Position, Step, Linear specifiers, separated by the blank
character. By default the configuration setting is used.
backgrpower - background polynomial degree. If the fitting is
executed without background the -1 value should be set.
loadlib (
Library loading
libfilename – library file
);
Parameters:
libfilename - library file path. If the blank character is specified,
the current library is loaded for the configuration.
loadzones (
Zones loading
zonesfilename – zones file path
);
Parameters:
zonesfilename - zones file path. If the blank character is
specified or the file doesn't exist, the zones file is not loaded.

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Scenarios Format 3-8

loadbckgspe(
Background spectrum loading
filename – background spectrum file path
);
Parameters:
filename – background spectrum file path. If file doesn‟t exist or
white space is specified as parameter then background
spectrum from configuration is loaded.
loadcalibr (
Calibration loading into the
calibrtype, – calibration type
spectrum
filename – calibration file path
);
Parameters:
calibrtype – calibration type:
1 – energy
2 – FWHM
filename – calibration file path.
loadeff(
Efficiency section loading
filename – polynomial file path
);
Parameters:
filename – polynomial file path from which section with spectrum
values Detector and Geometry is loaded (if exists).
messagebox(
Message box output
messagetext, – text of the message
caption, – text of the title
options – options defining icons and buttons
);
Parameters:
messagetext – text of the message.
caption – text of the title.
options – options defining icons and buttons. Buttons:
“Ok” – 0;
“OK, Cancel” – 1;
“Yes, No, Cancel” – 3;
“Yes, No” – 4;
Icons:
“Error” – 16;
“Question” – 32;
“Exclamation mark” – 48.
output (
Saving of the results of peaks
filename – output file path
search into a file
);
Parameters:
filename – output file path.
reset (
Reset the spectrum or
property – spectrum or configuration parameter
configuration parameters
);
Parameters:
property - spectrum or configuration parameter for setting the
saved value. You can reset the following parameters:
- leftpeakbound – the left peak bound (in units of FWHM) in the
configuration parameters,
- rightpeakbound – the right peak bound (in units of FWHM) in
the configuration parameters,
- chbegin – the left spectrum processing bound [channels] in
the configuration parameters,
- chend – the right spectrum processing bound [channels] in
the configuration parameters,
- sens – the sensitivity level of peaks search in the
configuration parameters,
- library – the .lib - file of the nuclides library for identification in

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Scenarios Format 3-9

the configuration parameters,


- efffile – the .efa or .pol – file of the efficiency "curve" in the
configuration parameters,
- patternfile – the .cpt-file with calibration data of relation
between peak form and energy (peak pattern) in the
configuration parameters,
- minimize – minimization parameters for spectrum fitting,
separated by blank characters (FWHM – using FWHM,
Position – using peak position, Step – using Compton


2
background, Linear – using the - functional linearization) in
the configuration parameters,
- idwin – the identification window [keV] in the configuration
parameters,
- fwhmfile – the .cfw-file with the FWHM calibration results in
the configuration parameters,
- energyfile – the .cen-file with the energy calibration results in
the configuration parameters,
- comment – user text comments in the spectrum parameters,
- detector – detector name in the spectrum parameters,
- geometry - geometry name in the spectrum parameters,
- spemestype – measurement type in the spectrum
parameters,
- spepattern – the new peak-pattern .cpt-file for spectrum,
- applezone – application zone [keV] in the configuration
parameters.

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Scenarios Format 3-10

start (
Starting of spectrum acquisition in
acqtime – acquisition time
opened analyzer window
acqmode – acquisition mode
specount – amount of spectrums
speprefix – spectrum prefix in case of consecutive
measurements
clearspe – spectrum clearing flag
delay – delay between two spectrums acquisition
funcbefore – scenario function that is run before spectrum
acquisition
funcafter – scenario function that is run after spectrum
acquisition
);
Parameters:
acqtime – acquisition time (seconds).
acqmode – acquisition mode:
0 – live time,
1 – real time,
2 – without limitations.
specount – spectrums amount. If it is greater than 1 then
consecutive measurements mode is switched on.
speprefix – spectrum prefix in case of consecutive
measurements.
clearspe – spectrum clearing flag:
0 – do not clear the spectrum during next spectrum acquisition
1 – clear the spectrum during next spectrum acquisition.
delay – delay between two spectrums acquisition (seconds).
funcbefore – scenario function that is run before spectrum
acquisition.
funcafter – scenario function that is run after spectrum
acquisition.
exit()
Exit from scenario
This command has no parameters.
search (
Peaks search
sensitivity - sensitivity level of peaks search
);
Parameters:
sensitivity - sensitivity level of peaks search. The configuration
setting is used if not specified.
searchandfit (
Peaks search and fitting
sensitivity - sensitivity level of peaks search
);
Parameters:
sensitivity - sensitivity level of peaks search. The configuration
setting is used if not specified.
setmarker (
Placing a marker in specified
position – marker position [keV]
spectrum area
);
Parameters:
position - cursor position [keV].
The current zone and peak are changed (if the search peak
procedure has been done) with this command.
showwindow (
Display of one of program
windowname – displayed program window
windows
);
Parameters:
windowname can have following values:
- activityinfo – window with activity calculation results;
- calcalpha – alpha spectrum calculation window;
- zonefit – window with the results of zone fitting;
- peakinfo – window with information about the peaks;

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Scenarios Format 3-11

- compositionpu – Pu composition calculation result;


- enrichmentu – U enrichment calculation result.

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Scenarios Format 3-12

oneptcalibr(
Energy calibration for one point
leftchannel, rightchannel, - bounds [channels] for peaks
search
energy, - energy for calibration
method, - method of a peak position search
shift – calibration shift relative to the origin of the coordinates
);
Parameters:
leftchannel, rightchannel - bounds [channels] for peaks search;
energy - energy for calibration;
method - method of a peak position search (0 - by 3 points, 1 –
by peak centroid);
shift - calibration shift relative to the origin of the coordinates.
The value is obtained from the energy spectrum calibration if not
specified.
Examples:
oneptcalibr (100, 120, 50, 0) – peak is searched by 3 points, in
the range from 100 to 120 channel; then the energy calibration is
performed for the energy 50 keV; the shift value is obtained from
the spectrum calibration.
oneptcalibr(100, 120, 50, 0, 0) - peak is searched by 3 points,
in the range from 100 to 120 channel; then the energy calibration
is performed for the energy 50 keV; shift is equaled to 0 (i.e. the
calibration curve goes through the origin of the coordinates).
savecalibr(
The spectrum calibration saving to
calibrtype, - the saved calibration type
the configuration parameters
ask – the confirmation option
);
Parameters:
calibrtype - the saved calibration type:
0 – the energy calibration is saved (by default),
1 - the FWHM calibration is saved.
ask - the confirmation option:
0 – no user confirmation (by default),
1 – confirm the calibration saving.
Examples:
savecalibr(0, 1) – the energy calibration is saved with
confirmation;
savecalibr(0) - the energy calibration is saved without
confirmation.
This command is required for analyzer operations, because the
energy calibration from the configuration parameters is used
when the analyzer window opens.
saveeff(
Efficiency saving
filename – polynomial file path
)
Parameters:
filename – polynomial file path.
If such section already exists in the file it will be replaced.
savetodb()
The active spectrum saving to
This command has no parameters
database
clear()
Spectrum peaks clearing
This command has no parameters
External application running execute(
exename, - the name of the application executable file,
parameters, - parameters of the command line to be passed
to the application,
workdir, - the application default directory,
wait – option of waiting for application termination
);

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Scenarios Format 3-13

Parameters:
exename, - the name of the application executable file, e.g.:
'c:\windows\notepad.exe'
parameters, - parameters of the command line to be passed to
the application, e.g. 'c:\temp\file.txt'
workdir, - the application default directory, e.g.: 'c:\temp'
wait – option of waiting for application termination:
0 – don‟t wait,
1 – wait.
Examples:
execute('c:\windows\notepad.exe', 'c:\temp\file.txt', „‟, 0) – the
file „file.txt‟ is opened by NotePad, the main program doesn‟t wait
for NotePad termination.
Active spectrum saving to file savespectrum(
filename, - the spectrum file name,
format – the format to save the active spectrum (the spectrum
which is being processed now)
);
Parameters:
filename - the spectrum file name, e.g. c:\temp\myspectrum.spe
format - the format to save the active spectrum:
0 – LSRM format,
1 – GreenStar format,
2 – BSI format,
3 – LSRM text format.
Examples:
savespectrum(c:\temp\myspectrum.spe, 0) – the active
spectrum will be saved to file „myspectrum.spe‟ in „c:\temp‟
directory in LSRM format.

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Scenarios Format 5-14

4 Variables
the left peak bound (in units of FWHM) in the configuration parameters
$leftpeakbound
the right peak bound (in units of FWHM) in the configuration parameters
$rightpeakbound
the left spectrum processing bound [channels] in the configuration parameters
$chbegin
the right spectrum processing bound [channels] in the configuration parameters
$chend
the beginning of spectrum processing [keV]
$energybegin
the end of spectrum processing [keV]
$energyend
the sensitivity level of peaks search in the configuration parameters
$sens
the .lib - file of the nuclides library for identification in the configuration parameters
$library
the .efa or .pol – file of the efficiency "curve" in the configuration parameters
$efffile
the .cpt-file with calibration data of relation between peak form and energy (peak
$patternfile
pattern) in the configuration parameters
minimization parameters for spectrum fitting, separated by blank characters
$minimize
(FWHM – using FWHM, Position – using peak position, Step – using Compton


2
background, Linear – using the - functional linearization) in the configuration
parameters
the identification window [keV] in the configuration parameters
$idwin
the .cfw-file with the FWHM calibration results in the configuration parameters
$fwhmfile
the .cen-file with the energy calibration results in the configuration parameters
$energyfile
user text comments in the spectrum parameters
$comment
detector name in the spectrum parameters
$detector
geometry name in the spectrum parameters
$geometry
the new peak-pattern .cpt-file for spectrum
$spepattern
measurement type in the spectrum parameters
$spemestype
application zone [keV] in the configuration parameters; if the pattern calibration is
$applzone
executed (see the section Pattern calibration in the manual [1] ) and a section
with this energy (within the application zone) already exists in the .cpt peak-
pattern file, the query for its substitution is displayed.

5 Examples of Scenarios
The .lsc – file example is listed below:

; clear spectrum peaks


clear
; load zones
$spepattern=C:\SpectraLine\ЭХЗ\Data\Calibr.cpt
loadzones(C:\SpectraLine\ЭХЗ\Data\Calibr.zon)
showwindow(activityinfo)
reset(spepattern)
; clear spectrum peaks
© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual
Scenarios Format 5-15

clear
; load zones
loadzones(C:\SpectraLine\ЭХЗ\Data\Calibr.zon)
; show activity results
showwindow(activityinfo)

Parameters are initialized, the energy calibration is done for the etalon source, concentration of the
etalon source is calculated and the calibration is saved to the configuration parameters in the following
scenario:

geotechinit(100, 130, 210, 250, 320, 360, 1, 1, 1, 1, 1, 1, 1, 1)


oneptcalibr(89, 111, 244, 0)
geotechcalc()
savecalibr(1)

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Appendix I References I-1

Appendix I References

[1] SpectraLine_User’s Manual


[2] SpectraLine_Algorithmic foundations

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual


Appendix II Service and Support II-1

Appendix II Service and Support

"LSRM" Ltd, 1a Lyalovskoe highway, Mendeleevo,


Solnechnogorsky district, Moscow region, Russia, 141570
WWW: http://www.lsrm.ru
 Danilenko Vladimir Nikolaevich, E-mail: danilenko@lsrm.ru
 Kovalsky Eugene Anatolyevich, E-mail: kovalsky@lsrm.ru
 Fedorovsky Sergey Yurievich, E-mail: tadik@lsrm.ru
Tel/Fax: +7 (495) 660-16-14
E-mail: lsrm@lsrm.ru

© “LSRM” Ltd SpectraLine – Scenarios. User‟s Manual

You might also like