The fug module

Autogenerated API documentation for fug

Driver for “fug NTN 140 - 6,5 17965-01-01” power supply Communication via the Probus V serial interface.

Written using the two documents:

  1. Interface system Probus V - Documentation for RS232/RS422 Revision of document 2.4
  2. Probus V - Command Reference Base Module ADDAT30 Firmware PIC0162 V4.0 Version of Document V2.22

Should be freely available from http://www.fug-elektronik.de/en/support/download.html (Available August 25 2017)

class PyExpLabSys.drivers.fug.FUGNTN140Driver(port='/dev/ttyUSB0', baudrate=9600, parity='N', stopbits=1, bytesize=8, device_reset=True, V_max=6.5, I_max=10)[source]

Bases: object

Driver for fug NTN 140 power supply

Methods

  • Private
    • __init__
    • _check_answer
    • _flush_answer
    • _get_answer
    • _write_register
    • _read_register
  • Public
    • reset()
    • stop()
    • is_on()
    • output(state=True/False)
    • get_state()
    • identification_string()
    • set_voltage(value)
    • get_voltage()
    • monitor_voltage()
    • ramp_voltage(value, program=0)
    • ramp_voltage_running()
    • set_current(value)
    • get_current()
    • monitor_current()
    • ramp_current(value, program=0)
    • ramp_current_running()
__init__(port='/dev/ttyUSB0', baudrate=9600, parity='N', stopbits=1, bytesize=8, device_reset=True, V_max=6.5, I_max=10)[source]

Initialize object variables

For settings port, baudrate, parity, stopbits, bytesize, see the pyserial documentation.

Parameters:device_reset (bool) – If true, resets all device parameters to default values
reset()[source]

Resets device

stop(reset=True)[source]

Closes device properly before exit

is_on()[source]

Checks if output is ON (>DON) Returns True if ON

output(state=False)[source]

Set output ON (>BON)

get_state()[source]

Checks whether unit is in CV or CC mode (>DVR/>DIR)

identification_string()[source]

Output serial number of device

set_voltage(value)[source]

Sets the voltage (>S0)

get_voltage()[source]

Reads the set point voltage (>S0A)

monitor_voltage()[source]

Reads the actual (monitor) voltage (>M0)

ramp_voltage(value, program=0)[source]

Activates ramp function for voltage value : ramp value in volts/second (>S0R)

program setvalue behaviour
0 (default) no ramp function. Setpoint is implemented immediately
1 >S0A follows the value in >S0 with the adjusted ramp rate upwards and downwards
2 >S0A follows the value in >S0 with the adjusted ramp rate only upwards. When programming downwards, >S0A follows >S0 immediately.
3 >S0A follows the value in >S0 with a special ramp function only upwards. When programming downwards, >S0A follows >S0 immediately. Ramp between 0..1 with 11.11E-3 per second. Above 1 : with >S0R
4 Same as 2, but >S0 as well as >S0A are set to zero if >DON is 0
ramp_voltage_running()[source]

Return status of voltage ramp. True: still ramping False: ramp complete

set_current(value)[source]

Sets the current (>S1)

get_current()[source]

Reads the set point current (>S1A)

monitor_current()[source]

Reads the actual (monitor) current (>M1)

ramp_current(value, program=0)[source]

Activates ramp function for current. See ramp_voltage() for description.

ramp_current_running()[source]

Return status of current ramp. True: still ramping False: ramp complete

read_H1()[source]

Read H1 FIXME not yet done

print_states(t0=0)[source]

Print the current state of the power supply

PyExpLabSys.drivers.fug.test()[source]

Module test function