Import
lager.power, where resistance, temperature and voc are
named solar_resistance, solar_temperature and solar_voc.
Functions
Each function prints its result to the script’s output and returns
None. A script cannot
read a value from the return value. Each function raises SolarBackendError when the
instrument refuses a value or does not answer.Function Reference
set_to_solar_mode(netname)
Connect to the instrument and start photovoltaic simulation mode. The function tries three
times, because an EA supply needs time to settle after a stop.
stop_solar_mode(netname)
Stop the simulation and disconnect from the instrument.
irradiance(netname, value=None)
Set the irradiance level, or print it when value is None.
A value below 0 or above 1500 raises
SolarBackendError.
voc(netname)
Print the open-circuit voltage.
mpp_voltage(netname)
Print the maximum power point voltage.
mpp_current(netname)
Print the maximum power point current.
resistance(netname, value=None)
Set the dynamic panel resistance, or print it when value is None.
temperature(netname)
Print the simulated cell temperature.
Examples
Basic Solar Simulation
Test Multiple Irradiance Levels
Measure the DUT Against a Fixed Irradiance
Supported Hardware
Only EA PSB models are accepted. Another instrument on a solar net raises
SolarBackendError.
Notes
- Solar simulation requires a bidirectional (two-quadrant) power supply
- Standard Test Conditions (STC): 1000 W/m², 25°C, AM1.5
- The I-V curve is automatically generated based on irradiance
- Call
set_to_solar_mode()before the other functions - Always call
stop_solar_mode()when finished, for example in afinallyblock - The functions print and return
None. The printed text includes terminal color codes - The CLI equivalent is
lager solar

