Skip to content

WavelabsSinus220#

Controls a WaveLabs SINUS-220 solar simulator from Python. The device is controlled via the WaveLabs remote control (WLRC) interface by activating and running recipes. This class inherits from MeasmaticDevice.


method activate_recipe(recipeName: str)#

Activates the recipe with the given name on the solar simulator. An error is raised if the device reports an error.

Parameters#

Name Description
recipeName The name of the recipe to activate.

Example#

sun = measmatic.get_device('device-solar-simulator')
sun.activate_recipe('my_recipe')

method cancel_recipe()#

Cancels the active recipe. This sends the activate recipe command without a recipe name.

Example#

sun = measmatic.get_device('device-solar-simulator')
sun.cancel_recipe()

method check_run_finished(timeout: int)#

Waits until the running recipe has finished (sends the WaitForRunFinished command). An error is raised if the device reports an error.

Parameters#

Name Description
timeout The timeout passed to the device for the wait, as an integer.

Example#

sun = measmatic.get_device('device-solar-simulator')
sun.start_recipe()
sun.check_run_finished(60)

method get_irradiance_wavelength_data_series(step: int, wavelength: Any, irradiance: Any)#

Reads the irradiance-wavelength curve of the given recipe step from the solar simulator.

Parameters#

Name Description
step The number of the recipe step.
wavelength Out parameter, returned as part of the result tuple. The wavelength values of the curve.
irradiance Out parameter, returned as part of the result tuple. The irradiance values of the curve.

Example#

sun = measmatic.get_device('device-solar-simulator')
wavelength, irradiance = sun.get_irradiance_wavelength_data_series(1)

method get_result(parameter: str, step: int)#

Reads a result value of the given recipe step from the solar simulator.

Parameters#

Name Description
parameter The name of the result parameter. The step is appended by the driver as parameter.stepN .
step The number of the recipe step.

Returns#

Type Description
str The result value as a string, as returned by the device.

Example#

sun = measmatic.get_device('device-solar-simulator')
value = sun.get_result('Irradiance', 1)

method set_recipe_param(recipe: str, step: int, param: str, val: str)#

Sets a parameter of a recipe step.

Parameters#

Name Description
recipe The name of the recipe.
step The number of the recipe step.
param The name of the parameter to set.
val The new value of the parameter as a string.

Example#

sun = measmatic.get_device('device-solar-simulator')
sun.set_recipe_param('my_recipe', 1, 'Intensity', '1000')

method start_recipe()#

Starts the active recipe. Use check_run_finished to wait for the end of the run.

Example#

sun = measmatic.get_device('device-solar-simulator')
sun.activate_recipe('my_recipe')
sun.start_recipe()

method wait_for_result_available(timeout: int)#

Waits until the results of the run are available (sends the WaitForResultAvailable command). An error is raised if the device reports an error.

Parameters#

Name Description
timeout The timeout passed to the device for the wait, as an integer.

Example#

sun = measmatic.get_device('device-solar-simulator')
sun.wait_for_result_available(60)