#this script is bus protocol for the pump

import os
import minimalmodbus
import serial


def init_pump():
    #20: bus address
    instrument = minimalmodbus.Instrument('/dev/ttyUSB_PUMP', 20)
    instrument.serial.baudrate = 9600
    instrument.serial.parity = serial.PARITY_NONE
    instrument.serial.timeout = 5
    instrument.debug = False
    return instrument


510ba75f3408cb4164e7de22db27309e4586ff47
<mask token>

<mask token>


def init_pump():
    instrument = minimalmodbus.Instrument('/dev/ttyUSB_PUMP', 20)
    instrument.serial.baudrate = 9600
    instrument.serial.parity = serial.PARITY_NONE
    instrument.serial.timeout = 5
    instrument.debug = False
    return instrument

import os
import minimalmodbus
import serial


def init_pump():
    instrument = minimalmodbus.Instrument('/dev/ttyUSB_PUMP', 20)
    instrument.serial.baudrate = 9600
    instrument.serial.parity = serial.PARITY_NONE
    instrument.serial.timeout = 5
    instrument.debug = False
    return instrument

#this script is bus protocol for the pump

import os
import minimalmodbus
import serial


def init_pump():
    #20: bus address
    instrument = minimalmodbus.Instrument('/dev/ttyUSB_PUMP', 20)
    instrument.serial.baudrate = 9600
    instrument.serial.parity = serial.PARITY_NONE
    instrument.serial.timeout = 5
    instrument.debug = False
    return instrument

