示例#1
0
 def _setupSerialPort(self,address):
     if address.lower() == 'virtual':
         from virtual import virtualPortController
         self._connection = virtualPortController(self.__class__.__name__,self._sendQueue,self._receiveQueue)
     else:
         from misc import serialPortController
         self._connection = serialPortController(address,self._sendQueue,self._receiveQueue)
示例#2
0
文件: magstim.py 项目: a-hurst/magpy
 def _setupSerialPort(self, address):
     if address.lower() == 'virtual':
         pass
         #from virtual import virtualSerialPortController
         #self._connection = virtualSerialPortController(self.__name__, self._sendQueue, self._receiveQueue, self._super)
     else:
         self._connection = serialPortController(address, self._sendQueue, self._receiveQueue)
示例#3
0
 def __init__(self,address):      
     self._sendQueue = multiprocessing.Queue()
     self._receiveQueue = multiprocessing.Queue()
     self._robotQueue = multiprocessing.Queue()
     self._connection = serialPortController(address,self._sendQueue,self._receiveQueue)
     self._connection.daemon = True
     self._robot = connectionRobot(self._sendQueue,self._robotQueue)
     self._robot.daemon = True
     self._connected = False
示例#4
0
 def _setupSerialPort(self, address):
     if address.lower() == 'virtual':
         pass
     else:
         self._connection = serialPortController(address, self._sendQueue, self._receiveQueue)