Go to Post At my age I don't celebrate birthday's anymore. I'd rather hang out with teenagers and build robots and be in complete denial about my aging. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-02-2010, 17:22
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
imaqWriteJPEG, filesystem, and camera issues

last year, our robot saved the axis images to the onboard flash, we then got the images, processed them, and put them in a video. we used the imaqWriteJPEGfile and imaqWritePNGfile functions, and it worked fine. I tried the (almost exact) code in the 2010 Vision demo (modded for ball tracking, http://www.chiefdelphi.com/forums/sh...php?t=81556#14), using WPILib 4.3, cRIO v20 and got nothing. I don't know if it is expected, but leaving fn to "" causes the file name to be truncated after 3 or 4 loops. the output is "i:0 B123t.jpg" (with code as is).
PHP Code:
charfn="1234567890-qwertyusdfghjcvbn";
//char* fn="";
sprintf(fn,"B%dt.jpg\0",d);//d is a loop counter
// get the camera image
ColorImage *image = new ColorImage(IMAQ_IMAGE_RGB);
camera.GetImage(image);
printf("i:%i %s"imaqWriteJPEGFile(image->GetImaqImage(),fn,1000,NULL),fn);
///imaqWritePNGFile2(image->GetImaqImage(),fn,9,NULL,false); 
Also, is there a way to stream and look at the imaq images like labview to help with debugging?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera Code Issues Phoenix.14 NI LabVIEW 7 02-10-2009 15:55
Working Robot EEPROM Filesystem dragoonex Programming 0 03-08-2008 20:43
Camera Issues RedOctober45 Programming 5 08-02-2007 15:59
Camera issues Todd Programming 0 16-02-2005 19:06


All times are GMT -5. The time now is 10:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi