GQ Electronics Technical Support Forum Active Users: / Visits Today:
Highest Active Users:
GQ Electronics Technical Support Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 GQ Electronics Forums
 2.GQ Geiger Muller Counter
 GMC-320 Plus stops after 128 samples

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an Image File
Check here to include your profile signature.
    

T O P I C    R E V I E W
fmotl Posted - 09/25/2014 : 13:54:38
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)

2   L A T E S T    R E P L I E S    (Newest First)
fmotl Posted - 09/30/2014 : 16:16:37
Hi all,

Turned out to be a problem with the USB HUB.
I guess it failing after 128 samples was an interesting coincidence!
All good.

thanks,
Fred
ZLM Posted - 09/26/2014 : 15:50:21
What are you sending to device?

You may need change the Exception location to narrow down to a particular code line. That is easier to find out the problem.

GQ Electronics Technical Support Forum © Copyright since 2011 Go To Top Of Page
Generated in 0.04 sec. Snitz's Forums 2000