next up previous
Next: Retrieving detector parameters (plus Up: slsDetectorClient Previous: Acquisition

Detector setup

mythen_put [id[:/-]]var arg

is used to configure the detector parameter var e.g. mythen_put 0:exptime 1 sets the exposure time to 1 s

help i
get help
config fname
reads the configuration file specified and sets the values
parameters fname
sets the detector parameters specified in the file
setup rootname
reads the files specfied (and that could be created by get setup) and resets the complete detector configuration including flatfield corrections, badchannels, trimbits etc.
hostname name
this is mandatory!!!! sets hostname (or IP adress)
online b
b can be 0 or 1 and sets the detector in offline/online state. Must be used to restore communication if some socket called failed because the detector was not connected.
status s
either start or stop
caldir path
Sets path of the calibration files
trimdir path
Sets path of the trim files
outdir path
directory to which the files will be written by default
fname name
filename to which the files will be written by default (to which file and position indexes will eventually be attached)
index i
start index of the files (automatically incremented by the acquisition functions)
nmod n
Sets number of detector modules
extsig:i mode
Sets usage of the external digital signal i. mode can be: off, gate_in_active_high, gate_in_active_low, trigger_in_rising_edge, trigger_in_falling_edge, ro_trigger_in_rising_edge, ro_trigger_in_falling_edge, gate_out_active_high, gate_out_active_low, trigger_out_rising_edge, trigger_out_falling_edge, ro_trigger_out_rising_edge, ro_trigger_out_falling_edge
timing
Sets the timing mode of the detector. Can be auto, gating (works only if at least one of the signals is configured as gate_in), trigger (works only if at least one of the signals is configured as trigger_in), ro_trigger (works only if at least one of the signals is configured as ro_trigger_in), triggered_gating (works only if one ofthe signals is configured as gate_in and one as trigger_in).
settings sett
Sets detector settings. Can be: standard fast highgain (depending on trheshold energy and maximum count rate: please refere to manual for limit values!);
threshold ev
Sets detector threshold in eV. Should be half of the beam energy. It is precise only if the detector is calibrated
vthreshold dac
Sets detector threshold in DAC units. A very rough calibration is dac=800-10*keV
exptime t
Sets the exposure time per frame (in s)
period t
Sets the frames period (in s)
delay t
Sets the delay after trigger (in s)
gates n
Sets the number of gates per frame
frames n
Sets the number of frames per cycle (e.g. after each trigger)
cycles n
Sets the number of cycles (e.g. number of triggers)
probes n
Sets the number of probes to accumulate (max 3)
dr n
Sets the dynamic range - can be (1,) 4, 8,16 or 24 bits
flags mode
Sets the readout flags - can be none or storeinram
flatfield fname
Sets the flatfield file name - none disable flat field corrections
ratecorr t
Sets the rate corrections with dead time t ns (0 unsets, -1 uses default dead time for chosen settings
badchannels fname
Sets the badchannels file name - none disable bad channels corrections
angconv fname
Sets the angular conversion file name
globaloff o
sets the fixed angular offset of your encoder - should be almost constant!
fineoff o
sets a possible angular offset of your setup - should be small but can be senseful to modify
binsize s
sets the binning size of the angular conversion (otherwise defaults from the angualr conversion constants)
angdir i
sets the angular direction of the detector (i can be 1 or -1 - by default 1, channel 0 is smaller angle)
positions np (pos0 pos1...posnp)
Sets the number of positions at which the detector is moved during the acquisition and their values
startscript script
sets a script to be executed at the beginning of the measurements (e.g. open shutter). none unsets. Parameters will be parsed as script nrun=i par=spar where i is the run number and spar is the value of startscriptpar.
stopscript script
sets a script to be executed at the end of the measurement (e.g. close shutter). none unsets. Parameters will be parsed as script nrun=i par=spar where i is the run number and spar is the value of stopscriptpar.
startscriptpar spar
sets a parameter passed to the start script as string with the syntax par=spar. Its meaning must be interpreted inside the script!
stopscriptpar spar
sets a parameter passed to the start script as string with the syntax par=spar. Its meaning must be interpreted inside the script!
scan0script script
Sets a scan script to be executed at higher level. Script can be none (unset), threshold (change threshold DAC values for all modules), energy (change energy threshold DAC values using calibration for each module), trimbits (change trimbits for all channels) or any script (e.g changing temperature or moving sample) which will be called with the syntax script nrun=i fn=fname var=val par=spar where i is the file index, fname is the file name val is the current value of the scan variable and spar is the value of the scan parameter
scan1script script
Sets a scan script to be executed at lower level. Script can be none (unset), threshold (change threshold DAC values for all modules), energy (change energy threshold DAC values using calibration for each module), trimbits (change trimbits for all channels) or any script (e.g changing temperature or moving sample) which will be called with the syntax script nrun=i fn=fname var=val par=spar where i is the file index, fname is the file name val is the current value of the scan variable and spar is the value of the scan parameter
scan0par spar
sets the scan parameter to be passed to scan0script as a string with syntax par=spar. Its meaning has to be interpreted insode the script!
scan1par spar
sets the scan parameter to be passed to scan1script as a string with syntax par=spar. Its meaning has to be interpreted insode the script!
scan0prec i
sets the precision of the scan variable in order to properly generate the file names for scan0
scan1prec i
sets the precision of the scan variable in order to properly generate the file names for scan1
scan0steps n (f0 f1..fn)
sets the steps for the scan0script. n is the number of steps and the following values are the step values.
scan1steps n (f0 f1..fn)
sets the steps for the scan1script. n is the number of steps and the following values are the step values.
scan0range mi ma st
generates the steps for the scan0script in the range mi to ma with step st (is mi smaller than ma specify a negative step)
scan1range mi ma st
generates the steps for the scan1script in the range mi to ma with step st (is mi smaller than ma specify a negative step)
scriptbefore script
sets the script to be executed before each acquisition (before all positions) with the syntax script nrun=i fn=fname par=spar sv0=svar0 sv1=svar1 p0=spar0 p1=spar1 where i is the file index, fname is the file name, sva0, svar1 are the current values of the scan variables 0 and 1, spar0, spar1 are tthe scan parameter 0 and 1. none unsets.
scriptafter script
sets the script to be executed after each acquisition (after all positions) with the syntax script nrun=i fn=fname par=spar sv0=svar0 sv1=svar1 p0=spar0 p1=spar1 where i is the file index, fname is the file name, sva0, svar1 are the current values of the scan variables 0 and 1, spar0, spar1 are tthe scan parameter 0 and 1. none unsets.
scriptbeforepar spar
sets the parameter to be passed to the script before witht he syntax par=spar
scriptafterpar spar
sets the parameter to be passed to the script after witht he syntax par=spar
headerbefore script
sets the script to be executed before each acquisition (after moving the detector) with the syntax script nrun=i fn=fname par=spar where i is the run number, fname is the file name, spar is the header before parameter. The script is normally used to save a file header. none unsets.
headerafter script
sets the script to be executed after each acquisition (after each position) with the syntax script nrun=i fn=fname par=spar where i is the run number, fname is the file name, spar is the header after parameter. The script is normally used to complete the file header. none unsets.
headerbeforepar spar
sets the parameter to be passed to the header before script with the syntax par=spar
headerafterpar spar
sets the parameter to be passed to the header after script with the syntax par=spar


next up previous
Next: Retrieving detector parameters (plus Up: slsDetectorClient Previous: Acquisition
Thattil Dhanya 2017-08-24