CustomFunction: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 13: | Line 13: | ||
* self.variables and self.units have to have the same length as the number of return values of your main-function | * self.variables and self.units have to have the same length as the number of return values of your main-function | ||
* Input parameters: Define the names and the types of the input parameters according to the Function 'Example' | * Input parameters: Define the names and the types of the input parameters according to the Function 'Example' | ||
* change the return values according to the definition of self.variables and self.units. | |||
=== Input parameters === | === Input parameters === |
Revision as of 09:35, 9 September 2018
The Evaluation module is designed to allow users to load their own python function and hand over measurement values. The main purpose is to hand over measurement data from multiple modules to a function which takes care about calculating all necessary parameters and about data processing.
Adding a new function
- Go to the folder "Modules\Evaluation\Functions"
- Copy the folder "Example" and rename it with the name of your new function.
- Go into your new folder
- Open the main.py and change it to your needs.
Editing a Function
- self.variables: set a list of strings defining the names of your output variables
- self.units: set a list of strings defining the names of the units corresponding to self.variables
- self.variables and self.units have to have the same length as the number of return values of your main-function
- Input parameters: Define the names and the types of the input parameters according to the Function 'Example'
- change the return values according to the definition of self.variables and self.units.
Input parameters
- Data from SweepMe!: tuple -> ()
- Integer: int -> any integer number which will be the preset value
- Float: float -> any float value which will be the preset value
- String: str -> any string which will be the preset value
- List: list -> any list of strings which will be presented in ComboBox for selection by the user
- Bool: bool -> set to True or False; the user can later on select between both bool values
- Path: pathlib.Path() -> an empty or non-empty pathlib.Path object. The user will see a QFileDialog to choose a file.
Application
- Data smoothing
- Repetitive curve fitting and extraction of fit parameters
- Parameter extraction
- Specializing a measurement setup to certain needs
- pre-evaluation of the data
Examples
- Characteriztion of field-effect transistors: Transfer characteristics are measured in the linear regime. Current and voltage measurement data is handed over to the Evaluation module where charge carrier mobility and threshold voltage is extracted.
- Characterization of LEDs: Spectra and current-voltage characteristics can be handed over to the Evaluation module to calculate several device efficiency parameters.