testframework.clients.brain.tester.pvsystem module

A sub object of the client for interaction with Equipment under Test

class testframework.clients.brain.tester.pvsystem.PvsystemConnection(client: TestClient)

Bases: object

Provides methods for interacting with the PV System which is the Equipment under Test also named ACBOX - it’s possible to turn supply of pvsystem off and on as well as getting power measurememts for Sampling Point EUT The PV System is connected with 3 phase power L1, L2, L3 refer to the 3 power lines also sometimes named A,B,C

Usage:

test_client.pvsystem

These can be accessed given an instance of TestClient with .car for example:

Example

>>> def test_pvsystem(self, testbench: TestBench):
>>>    test_client = TestClient(testbench, default_timeout=30)
>>>    test_client.pvsystem.get_current_l1()
>>>    test_client.pvsystem.turn_on_supply()
get_current_l1() float

return current L1 value measured from power meter at sampling point AC Box where the equipment under test is measured

get_current_l2() float

return current L2 value measured from power meter at sampling point AC Box where the equipment under test is measured

get_current_l3() float

return current L3 value measured from power meter at sampling point AC Box where the equipment under test is measured

get_frequency() float

return frequency value measured from power meter at sampling point AC Box where the equipment under test is measured

get_power_l1() float

return power L1 value measured from power meter at sampling point AC Box where the equipment under test is measured

get_power_l2() float

return power L2 value measured from power meter at sampling point AC Box where the equipment under test is measured

get_power_l3() float

return power L3 value measured from power meter at sampling point AC Box where the equipment under test is measured

get_power_total() float

return power total value measured from power meter at sampling point AC Box where the equipment under test is measured

get_total_energy_export() float

return total energy import value measured from power meter at sampling point AC Box where the equipment under test is measured

get_total_energy_import() float

return total energy export value measured from power meter at sampling point AC Box where the equipment under test is measured

get_voltage_l1() float

return voltage L1 value measured from power meter at sampling point AC Box where the equipment under test is measured

get_voltage_l2() float

return voltage L2 value measured from power meter at sampling point AC Box where the equipment under test is measured

get_voltage_l3() float

return voltage L3 value measured from power meter at sampling point AC Box where the equipment under test is measured

turn_off_supply() None

turn off equipment under test

turn_on_supply() None

turn on equipment under test