View Single Post
  #1   Spotlight this post!  
Unread 21-03-2009, 22:59
mgoodell6 mgoodell6 is offline
Registered User
AKA: Mark Goodell
FTC #1902 (Exploding Bacon)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2005
Location: Orlando, FL
Posts: 3
mgoodell6 is an unknown quantity at this point
Capturing Camera Images to cRIO

I have not been able to get the frcWriteImage() function to work. I am using code from the WindRiver camera example but receive a frcWriteImage failed each time I try to save an image. Any help with this would be appreciated.

Here is the code I am using

if ( !GetImage (cameraImage,NULL) ) {
printf ("\nCamera Acquisition failed");
} else {
if (!frcWriteImage(cameraImage, "image.jpeg") ) {
printf ("frcWriteImage failed");
} else {
printf ("\n>>>>> Saved image to %s", "image.jpeg") );
// always dispose of image objects when done
frcDispose(cameraImage);
}
}