hvl_ccb.dev.fug.registers

Inheritance diagram of hvl_ccb.dev.fug.registers

Registers of FuG

class FuGProbusVConfigRegisters(fug, super_register: FuGProbusVRegisterGroups)[source]

Bases: object

Configuration and Status values, acc. 4.2.5

property execute_on_x: FuGDigitalVal

status of Execute-on-X

Returns:

FuGDigitalVal of the status

property most_recent_error: FuGErrorcodes

Reads the Error-Code of the most recent command

Return FuGError:

Raises:

FuGError – if code is not “E0”

property readback_data: FuGReadbackChannels

Preselection of readout data for Trigger-on-Talk

Returns:

index for the readback channel

property srq_mask: int

SRQ-Mask, Service-Request Enable status bits for SRQ 0: no SRQ Bit 2: SRQ on change of status to CC Bit 1: SRQ on change to CV

Returns:

representative integer value

property srq_status: str

SRQ-Statusbyte output as a decimal number: Bit 2: PS is in CC mode Bit 1: PS is in CV mode

Returns:

representative string

property status: str

Statusbyte as a string of 0/1. Combined status (compatibel to Probus IV), MSB first: Bit 7: I-REG Bit 6: V-REG Bit 5: ON-Status Bit 4: 3-Reg Bit 3: X-Stat (polarity) Bit 2: Cal-Mode Bit 1: unused Bit 0: SEL-D

Returns:

string of 0/1

property terminator: FuGTerminators

Terminator character for answer strings from ADDA

Returns:

FuGTerminators

class FuGProbusVDIRegisters(fug, super_register: FuGProbusVRegisterGroups)[source]

Bases: object

Digital Inputs acc. 4.2.4

property analog_control: FuGDigitalVal
Returns:

shows 1 if power supply is controlled by the analog interface

property calibration_mode: FuGDigitalVal
Returns:

shows 1 if power supply is in calibration mode

property cc_mode: FuGDigitalVal
Returns:

shows 1 if power supply is in CC mode

property cv_mode: FuGDigitalVal
Returns:

shows 1 if power supply is in CV mode

property digital_control: FuGDigitalVal
Returns:

shows 1 if power supply is digitally controlled

property on: FuGDigitalVal
Returns:

shows 1 if power supply ON

property reg_3: FuGDigitalVal

For special applications.

Returns:

input from bit 3-REG

property x_stat: FuGPolarities
Returns:

polarity of HVPS with polarity reversal

class FuGProbusVDORegisters(fug, super_register: FuGProbusVRegisterGroups)[source]

Bases: object

Digital outputs acc. 4.2.2

property out: int | FuGDigitalVal

Status of the output according to the last setting. This can differ from the actual state if output should only pulse.

Returns:

FuGDigitalVal

property status: FuGDigitalVal

Returns the actual value of output. This can differ from the set value if pulse function is used.

Returns:

FuGDigitalVal

class FuGProbusVMonitorRegisters(fug, super_register: FuGProbusVRegisterGroups)[source]

Bases: object

Analog monitors acc. 4.2.3

property adc_mode: FuGMonitorModes

The programmed resolution and integration time of the AD converter

Returns:

FuGMonitorModes

property value: float

Value from the monitor.

Returns:

a float value in V or A

property value_raw: float

uncalibrated raw value from AD converter

Returns:

float value from ADC

class FuGProbusVRegisterGroups(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: NameEnum

Enum for the register groups

CONFIG = 'K'
INPUT = 'D'
MONITOR_I = 'M1'
MONITOR_V = 'M0'
OUTPUTONCMD = 'BON'
OUTPUTX0 = 'B0'
OUTPUTX1 = 'B1'
OUTPUTX2 = 'B2'
OUTPUTXCMD = 'BX'
SETCURRENT = 'S1'
SETVOLTAGE = 'S0'
class FuGProbusVSetRegisters(fug, super_register: FuGProbusVRegisterGroups)[source]

Bases: object

Setvalue control acc. 4.2.1 for the voltage and the current output

property actualsetvalue: float

The actual valid set value, which depends on the ramp function.

Returns:

actual valid set value

property high_resolution: FuGDigitalVal

Status of the high resolution mode of the output.

Return 0:

normal operation

Return 1:

High Res. Mode

property rampmode: FuGRampModes

The set ramp mode to control the setvalue.

Returns:

the mode of the ramp as instance of FuGRampModes

property ramprate: float

The set ramp rate in V/s.

Returns:

ramp rate in V/s

property rampstate: FuGDigitalVal

Status of ramp function.

Return 0:

if final setvalue is reached

Return 1:

if still ramping up

property setvalue: float

For the voltage or current output this setvalue was programmed.

Returns:

the programmed setvalue