Пример #1
0
    def setUp(self):
        self.master = modbus_rtu.RtuMaster(serial.Serial('COM1', 38400, timeout=0.3))
        self.master2 = modbus_rtu.RtuMaster(serial.Serial('COM7', 38400, timeout=0.3))
        self.master3 = modbus_rtu.RtuMaster(serial.Serial('COM3', 115200, timeout=0.3))

        self.di = owenio.DI16(self.master, 9)
        self.do = owenio.DO32(self.master, 5)
        self.m7084 = icpdas.M7084(self.master2, 3)
        self.gen = ddsgenerator.Generator(self.master3, 100)
Пример #2
0
    def setUp(self):
        self.master = modbus_rtu.RtuMaster(
            serial.Serial('COM1', 38400, timeout=0.3))
        self.master2 = modbus_rtu.RtuMaster(
            serial.Serial('COM2', 38400, timeout=0.3))

        self.di = owenio.DI16(self.master, 9)
        self.do = owenio.DO32(self.master, 5)
        self.pchv = owenpchv.Pchv(self.master2, 2, 1565, 1.333, verbose=True)
Пример #3
0
 def setUp(self):
     self.master = modbus_rtu.RtuMaster(
         serial.Serial('COM1', 38400, timeout=0.3))
     self.do1 = owenio.DO32(self.master, 1)
     self.do5 = owenio.DO32(self.master, 5)