View Single Post
  #27   Spotlight this post!  
Unread 30-01-2006, 22:04
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: Labview keeps freezing

Quote:
Originally Posted by Peter H
Usually yes. The download bar disappears and the frame stops updating at the same time, and the red LED continues to flash for a total of about 8 - 10 seconds. There is no error message other than the partial frame. I can select Grab Frame, and the download repeats for another try.

Sometimes, the previous behavior shows: the red LED stops when the frame update stops, the download bar repeats after several seconds, and no red LED. The Grab Frame button stays green, but, if I click it, it grays out. The download bar still repeats about every 25 seconds.
That is very interesting. From the behavior you describe, it sounds like the timeout for the frame grab is being computed incorrectly. The only inputs that the timeout is based upon is the Baud rate, the serial port delay, and the image dimensions that are returned from the camera. The first two shouldn't change unless you change them. It sounds as though the data coming from the camera may be getting corrupted.

Do you know how to probe lines in LabVIEW? It is a good way to debug LabVIEW code. I need you to open the "get picture.vi" inside of "CMUCam2 demo.llb" and switch to the block diagram (Ctrl-e), right click on the computed number of bytes and click probe. Then run the CMUCam Gui Application and let me know what the probe says for each of the cases you described above. I'm thinking that for whatever reason, you are having trouble with that, but lets see what you find from the probe.

Thanks,
-Joe
Reply With Quote