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:
- Interface system Probus V - Documentation for RS232/RS422 Revision of document 2.4
- 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
-
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
-
ramp_current
(value, program=0)[source]¶ Activates ramp function for current. See ramp_voltage() for description.
- Private