Paradigms

From SweepMe! Wiki
Jump to navigation Jump to search

To create measurement procedures and sequences (called settings before version 1.6), a number of concepts and paradigms are essential. For an overview of the building blocks of SweepMe!, see Concept.

  • The main flow of the program originates in the Sequencer. Here, users can place modules via drag and drop. The arrangement of these modules determines their activation timing, repetitions, and variations. Nested modules act like nested for-loops, and each path from the topmost module to a module without children is a branch. The branches are run one after another.
  • For more precise control over measurement instruments, one can design SweepMe! instrument drivers using Python. This allows specifying commands sent to instruments at various stages of the sequencer procedure. If the existing drivers do not meet the requirements, they can be extended or replaced with customized ones for specific problems.
  • Modules often depend on values from other modules. Many modules have a Sweep mode and a Sweep value. A module placed below another module can use "Sweep value of <label>" as its Sweep value, or a measured variable of any other module. This enables, for example, synchronizing the voltage increase of two sources or setting them to vary in opposite directions (see External Sweep values).
  • The parameter syntax, based on curly brackets {...}, facilitates value transfer to modules. The Parameters widget provides an overview of all system parameters. Users can insert these parameters into the text fields of modules, from version 1.6.1 also with the Parameter picker ("{}" button). During the run, parameters are replaced by their current values, and expressions in curly brackets are evaluated as inline calculations. See Parameter system.
  • While modules offer extensive configuration options, running individual code may be necessary. The Calc module supports simple point-wise calculations, and the Pro module CustomFunction allows for more complex scripts, including measurement history analysis.
  • Sometimes, single actions are needed like "close the shutter", "zero the thickness" or "skip the current wafer". Such actions can be added to modules and drivers and triggered via buttons from the Pro module ControlWidgets or from the Pro module Condition.
  • To perform correlated sweeps with two or more modules, such as varying a wavelength while positioning another module accordingly, the ReadValues or TableValues modules are useful. They create tables for transferring values between modules. The Calc module can also calculate new Sweep values for a module based on another module's sweep.