/VibrationTest/branches/ParameterTest/VibrationTest/MkProtocol.py |
---|
254,7 → 254,7 |
def open(self, comPort): |
self.serPort = serial.Serial(comPort, 57600, timeout=0.5) |
self.serPort = serial.Serial(comPort, 57600, timeout=0.5, rtscts=1) |
if not self.serPort.isOpen(): |
raise IOError("Failed to open serial port") |
362,7 → 362,7 |
try: |
comm = MkComm() |
comm.printDebugMsg = True |
comm.open(comPort="COM5") |
comm.open(comPort="COM40") |
msg = comm.getVersionMsg() |
print "Version: %d.%d" % msg.getVersion() |