Sweep Scripts

From SweepMe! Wiki
Revision as of 16:40, 10 September 2017 by Afischer (talk | contribs)
Jump to navigation Jump to search

Several Measurement Classes like SMU, Sweep, or Switch allow you to use 'SweepScript' as the source for the Sweep Value.

How to use

Sweep Scripts are simple text files which help you to make fully individual parameter sweeps. In the field "SweepScript" you can load a file from folder "SweepScripts" of your local SweepMe! installation. Input dialog for SweepScripts. The file endings ".txt", ".csv", ".dat" are supported. Make sure that your selected "SweepScript" as Sweep value in order to use your Sweep Script file as source for the values to be applied.

Format

Basically, there are three columns which can be used, related to

  1. Sweep value
  2. Hold time
  3. Stop time

The first column is mandatory and is related to the value which will be applied. The second and the third column are not mandatory and are related to Hold time and Stop time.

Supported are tab ("\t") and comma separated values. In case of tab ("\t") as separator, the decimal decimal mark can be either a point or a comma. In case of comma separated value, the decimal mark must be a point

Comments are indicated by a leading number sign #

Please find some examples in the SweepScripts folder of your local SweepMe! installation.

Making SweepScripts

Text editor

The simplest way to generate a Sweep Script is to use an text editor like editor or notepad++. Put your values in and keep the format as given above.

LibreOffice/Excel

Simply put the numbers into the first three columns and save the file as ".csv" (comma separated values).

Scripting

Think about the possibility to use a scripting language such as python to generate complex parameter procedures. Only pay attention to save the data in the format as explained above.