adi.pqmon module

class adi.pqmon.pqmon(uri='')

Bases: rx, context_manager, attribute

The AD-PQMON-SL is a power quality monitoring solution based on the ADE9430,

which is a high performance, polyphase energy and Class S power quality monitoring

and energy metering device.

class config(ctrl, channel_name)

Bases: attribute

The config class is used to configure the AD-PQMON-SL device power analysis parameters as required by the ADSW-PQ-CLS library

This class also implements the process_data attribute which is used to enable power quality measurements (when set to true) or waveform measurements (when set to false)

The single_shot_acquisition attribute is used to enable single shot acquisition (by default True). When this attribute is set to False, the device is set up for continuous acquisition and it will not reset the process_data attribute between acquisitions.

property current_scale

Current scale

property dip_hysteresis

Voltage dip hysteresis

property dip_threshold

Voltage dip thershold

property firmware_version

Firmware version

property flicker_model

Flicker model - can only be selected from flicker_model_available

property i0

Current unbalance I0

property i2

Current unbalance I2

property i_consel_en

Current connection selection if i_consel enable => IB = −IA − IC

property intrp_hysteresis

Interrupt hysteresis

property intrp_threshold

Interrupt threshold

property msv_carrier_frequency

Mains signal voltage carrier frequency

property msv_record_length

Mains signal voltage record length

property msv_threshold

Mains signal voltage threshold

property nominal_frequency

Nominal frequency - can only be selected from nominal_frequency_available

property nominal_voltage

Nominal voltage

property process_data

Process data - (true) enable power quality measurements or (false)waveform measurements

property rvc_hysteresis

Rapid voltage change hysteresis

property rvc_threshold

Rapid voltage change threshold

property sampling_frequency

Sampling frequency

property single_shot_acquisition

Single shot acquisition - (true) enable single shot acquisition or (false) continuous acquisition

property sneg_current

Negative sequence current

property sneg_voltage

Negative sequence voltage

property spos_current

Positive sequence current

property spos_voltage

Positive sequence voltage

property swell_hysteresis

Voltage swell hysteresis

property swell_threshold

Voltage swell threshold

property szro_current

Zero sequence current

property szro_voltage

Zero sequence voltage

property u0

Voltage unbalance U0

property u2

Voltage unbalance U2

property v_consel

Voltage connection selection

property voltage_scale

Voltage scale

class current_channel(ctrl, channel_name)

Bases: attribute

Current channel

property angle

Phase angle of current

property raw

Raw current value

property rms

RMS current value

property scale

Scale factor for current

class current_channel_phase(ctrl, channel_name)

Bases: current_channel

Current channel for one of the three phases

property harmonics

Harmonics of current

property inter_harmonics

Interharmonics of current

property thd

Total Harmonic Distortion of current

dip_events = []
intrpt_events = []
read_events()

reads the events from the device and stores them in the swell_events, dip_events, rvc_events and intrpt_events lists

rvc_events = []
rx()

The AD-PQMON-SL device only allows for buffers where all channels are enabled at the same time with buffer sizes of 256 samples.

swell_events = []
class voltage_channel(ctrl, channel_name)

Bases: attribute

Voltage channel

property angle

Phase angle of voltage

property deviation_over

Over voltage deviation

property deviation_under

Under voltage deviation

property harmonics

Harmonics of voltage

property inter_harmonics

Interharmonics of voltage

property magnitude1012

Magnitude over 10-12 cycles

property max_magnitude

Maximum magnitude

property pinst

Instantaneous power

property plt

Perceived long time flicker

property pst

Perceived short time flicker

property raw

Raw voltage value

property rms

RMS voltage value

property scale

Scale factor for voltage

property thd

Total Harmonic Distortion of voltage