Sweep value

From SweepMe! Wiki
(Redirected from Sweep values)
Jump to navigation Jump to search

A Sweep value is a value that is set and applied to a device or a module. Some modules only have a single Sweep value, which means that they do not increase the complexity or dimensionality of the measurement. It gets much more interesting if a module has several Sweep values for which a measurement is done.

Besides Sweep values, there are Measurement values, which are the values read back from your devices. In some cases, the Sweep value and the Measurement value might be identical.

Modules with their own tab often allow you to choose how the Sweep values are created.

Tutorial video

Our tutorial video on YouTube explains how to create sweeps.

Defining Sweep values

Typical arrangement of selection boxes for Sweep mode and Sweep value.

To define how the sweep of a module is done, the Sweep mode and the Sweep value have to be adjusted. Most modules therefore have selection boxes labeled "Sweep mode" and "Sweep value". The Sweep mode defines which kind of value is varied. For example, an SMU can vary the voltage or the current. Many modules offer the Sweep mode "None": the module then does not vary anything and runs once for each step of the modules above it.

The Sweep value defines the source of the values that are run through during the measurement. The unit of the Sweep value is defined by the Sweep mode, e.g. volt or ampere in case of an SMU.

Types of Sweep values

The selection box "Sweep value" lists the available sources in groups: "Internal Sweep values:", "External variables:" and "External Sweep values:".

Internal Sweep values

SweepEditor

The SweepEditor is a table to create complex lists of Sweep values, e.g. combinations of linear and logarithmic sweeps, including hold times.

SweepBox

The SweepBox is a simple input field where you can enter comma-separated values. This is of particular importance if strings are needed as Sweep values.

Sweep Scripts are no longer available since version 1.5.4.19. Use the module ReadValues to read Sweep values from a file instead.

External Sweep values

Sometimes a module should apply the Sweep value of another module. For example, one SMU sweeps through several voltages and a second SMU applies exactly the same voltage at the same time, e.g. to charge a substrate or a neighboring device to a defined reference voltage.

To do so, place the second module below the first one in the Sequencer and choose "Sweep value of <label>" in its selection box "Sweep value". Only the modules that the current module is nested in, i.e. the modules above it in its branch, are offered here, as "Sweep value of <label>" and "Sweep index of <label>". The second module then takes exactly one value for each step of the first module, so the two modules step together instead of creating a nested loop. If the second module used its own SweepEditor instead, it would run its complete sweep for each value of the first module.

A module that takes its Sweep value from another module or from a variable (see below) does not apply its own hold time, so the hold time is only applied once by the module that defines the sweep.

By using the modules Calc, TableValues and Condition, more sophisticated relationships are possible. For example, Calc can calculate a new value from the Sweep value of the module above, and TableValues can provide different values for several modules, one column per module.

External variables

Another option is to use a Measurement value of another module. These are listed under "External variables:" in the selection box "Sweep value", e.g. "SMU Voltage [V]". This allows an interaction between the items of the sequencer. For example, the integration time of a Spectrometer could depend on the signal of a photodiode measured by an SMU.

As a Measurement value is only available at the end of each measurement point, it needs at least two iterations before it can be used as a Sweep value. Often, a Loop module is needed in the sequencer if the module providing the Measurement value has no own sequence of Sweep values.

An example is the example sequence "SinSound" (Sequences → Load Example → Basic): a Calc module calculates a frequency from the elapsed time and a Switch module below it uses the variable "Calc1 Frequency [Hz]" as its Sweep value to play a sound.