Hi there,
Just got a GMC-320 plus. I'm using it with pyRadMon on a Linux PC. It works great however the sampling stops after 128 samples with the following error.
Problem in getData procedure (disconnected USB device?): (5, 'Input/output error').
See Python code below.
When I start the problem (without doing anything else such as unplugging/replugging the device), it works again for 128 samples, then stops again. As far as I can tell the device is operating normally - observing what I see on the display.
Any suggestions?
cheers,
Fred
try:
# wait for data
while (self.serialPort.inWaiting()==0 and self.stopwork==0):
time.sleep(1)
time.sleep(0.1) # just to ensure all CPM bytes are in serial port buffer
# read all available data
x=""
while (self.serialPort.inWaiting()>0 and self.stopwork==0):
x = x + self.serialPort.read()
if len(x)>0:
cpm=int(x)
utcTime=datetime.datetime.utcnow()
data=[cpm, utcTime]
return data
except Exception as e:
print "Problem in getData procedure (disconnected USB device?):", str(e)," exiting!!!"
self.stop()
sys.exit(1)