The brooks_s_protocol module

Autogenerated API documentation for brooks_s_protocol

Driver for Brooks s-protocol

class PyExpLabSys.drivers.brooks_s_protocol.Brooks(device, port='/dev/ttyUSB0')[source]

Bases: object

Driver for Brooks s-protocol

__init__(device, port='/dev/ttyUSB0')[source]

Initialize self. See help(type(self)) for accurate signature.

pack(input_string)[source]

Turns a string in packed-ascii format

crc(command)[source]

Calculate crc value of command

comm(command)[source]

Implements low-level details of the s-protocol

read_flow()[source]

Read the current flow-rate

read_full_range()[source]

Report the full range of the device Apparantly this does not work for SLA-series…

set_flow(flowrate)[source]

Set the setpoint of the flow