Skip to content

RunScript commands

rfriedr1 edited this page Jan 1, 2018 · 24 revisions

The following run-script commands are available:

script control

switches

temperature controller

plots and data evaluation

storing analysis data

  • analysis_session_new(AnalysisID; AnalysisName; AnalysisType)

Creates a new AnalysisSession. AnalysisID can be used to identify the analysis (e.g. sample ID). AnalysisName can be used to store the name of the sample of standard. AnalysisType is used to identify the type of analysis (sample, air, blank,…).

If those parameters are not given, a dialog appears and asks for the parameters.

If a SampleList is used to automatically run samples those information are provided by the SampleList. The SampleList will overwrite any explicitly given parameter.

  • analysis_session_add_switch_counter(switch_name)

The activation of all switches is monitored and counted. Using this command saves the counter of the given switch.

  • analysis_session_add_standard_data(standard_name)

Adds the standard information of the standard standard_name to the AnalysisSession that is being processed by the script (or subscript).

  • analysis_session_add_pipette_data(pipette_name; number_of_shots)

Adds the pipette information of the pipette pipette_name to the AnalysisSession that is being processed by the script (or subscript). Number_of_shots is the number of used pipettes for this analysis

  • analysis_session_dump

Writes all Analysis data into the textfile or database (depending on the settings). At this point only text files are supported.

  • analysis_session_close

Closes the AnalysisSession and removes the AnalysisObject from Memory. Should be performed after data acquicition is finished to free up memory.

data acquisition

  • set_time_zero(instrument)

Sets the value “time zero” of the instrument. Time zero is typically used in spectrometers to mark the inlet of the gas. The command is ignored if the given instrument doesn’t support this function.

  • set_magnet(instrument; value)

Sets the magnet of the instrument to value. The units of value are the units that the instrument used to control the magnet, e.g. Thermos Qtegra uses magnet voltage.

for Qtegra value is DAC

  • signal_vs_magnet(instrument; magnet_value; detector; integrtime; settling_time) -> plotname

Sets the magnet of instrument to magnet_value, waits settling_time before starting the integration of the signal for integrtime. After that the measured signal of the detector is returned and plotted versus the magent_value in plot plot_name. Qtegra supports only certain values of integrtime.

Magnet_value can be a number or a string the identifies an isotope in the magfield_table

  • signal_vs_time(instrument;magnet_value;detector(s);integrtime;settling_time) -> plotname(s)

Sets the magnet of instrument to magnet_value, waits settling_time before starting the integration of the signal for integrtime. After that the measured signal of the detector(s) is (are) returned and plotted versus time in plot(s) plot_name(s). Qtegra supports only certain values of integrtime.

Magnet_value can be a number or a string the identifies an isotope in the magfield_table

Detector(s) and plot_name(s) can be a string lists = strings separated by comma

Make sure that the number of detectors and plot_names agree.

Example – single detector use Use Qtegra to set the magnet to the magnet value of He3 (or 1.5 in the second example), use the H1_CDD detector with settling and integration times of 1 sec. Plot the result to the plot named “He3Plot”

signal_vs_time(Qtegra; He3; H1_CDD; 1, 1) -> He3Plot

signal_vs_time(Qtegra; 1.5; H1_CDD; 1, 1) -> He3Plot

Example – multi detector use Use Qtegra to set the magnet to the magnet value of He3, use the H1_CDD and the H2 detectors with settling and integration times of 1 sec. Plot the result of the H1_CDD detector to the plot named “He3Plot” and the H2 detector to “He4Plot”

signal_vs_time(Qtegra; He3; H1_CDD, H2; 1, 1) -> He3Plot, He4Plot

  • protect_detector(instrument;detector;[0,1])

Protects (1) or unprotects (0) the detector of the instrument

Example: protect_detector(qtegra,H1_CDD,1)

  • set_cupconfiguration(instrument;cupconfig_name;subcupconfig_name)

Changes the cup and subcup configuration of the instrument. Make sure the cup and subcup configurations actually exsist!

  • set_detector_deflection(instrument;detector;voltage)

Sets the voltage of the deflection of the detector

  • set_detector_supply(instrument;detector;voltage)

Sets the supply voltage of the detector

  • systemdevice_vs_time(SystemDeviceName) -> plotname

Returns the time and the value of SystemDevice (pressure sensor, temp sensor etc etc) and plots the data in a plot with the name plotname.

The data are stored during an analysis session and saved with the whole session.

A list of available SystemDevices is given in MSControl SystemDevice.ini

sample list

  • SampleList_proceed

If a SampleList is used to run multiple samples automatically, the sample list starts running the next sample when this command is processed. The command is being ignored if samples are run without a SampleList.

Clone this wiki locally