Sweep Scripts: Difference between revisions
No edit summary |
m (Minor changes and consistency.) |
||
Line 1: | Line 1: | ||
Several Measurement Classes like SMU, Sweep, or Switch allow you to use | 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. | 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. | In the field "SweepScript" you can load a file from folder "SweepScripts" of your local SweepMe! installation. | ||
[[File:SweepScript Input.PNG|Input dialog for SweepScripts.]] | [[File:SweepScript Input.PNG|Input dialog for SweepScripts.]] | ||
The file | The file extensions ".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. | 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. | ||
[[File:SweepScript UsedforSweepValue.PNG|Choose SweepScript as Sweep value.]] | [[File:SweepScript UsedforSweepValue.PNG|Choose SweepScript as Sweep value.]] | ||
== Format == | |||
Basically, there are three columns which can be used, related to | Basically, there are three columns which can be used, related to | ||
Line 20: | Line 20: | ||
The second and the third column are not mandatory and are related to Hold time and Stop time. | The second and the third column are not mandatory and are related to Hold time and Stop time. | ||
Tab ("\t") and comma separated values are supported. | |||
In case of tab ("\t") as separator, the | In case of tab ("\t") as separator, the decimal mark can be either a point or a comma. | ||
In case of comma separated | In case of comma separated values, the decimal mark must be a point. | ||
Comments are indicated by a leading number sign # | Comments are indicated by a leading number sign ("#"). | ||
Please find some examples in the SweepScripts folder of your local SweepMe! installation. | 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++. | The simplest way to generate a Sweep Script is to use an text editor like editor or notepad++. | ||
Enter your values 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). | Simply put the numbers into the first three columns and save the file as ".csv" (comma separated values). | ||
[[File:SweepScript LibreOffice.PNG|Generation of a SweepScript using a calculation software such as LibreOffice or Excel.]] | [[File:SweepScript LibreOffice.PNG|Generation of a SweepScript using a calculation software such as LibreOffice or Excel.]] | ||
=== 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. | 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. |
Revision as of 16:29, 29 September 2017
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.
The file extensions ".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
- Sweep value
- Hold time
- 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.
Tab ("\t") and comma separated values are supported. In case of tab ("\t") as separator, the decimal mark can be either a point or a comma. In case of comma separated values, 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++. Enter your values 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.