Go to Post [on the 2007 field control software] its crazy -- not only did they sound like the same old sound effects we know and love, but it seemed like they actually occured at the time they were supposed to! :) - Aidan F. Browne [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 23-01-2012, 14:00
malachias malachias is offline
Registered User
FRC #1311
 
Join Date: Jan 2012
Location: Kell High School, Marietta, GA
Posts: 9
malachias is on a distinguished road
Re: Saving Image from Axis Camera to cRIO

Your current directory is "/" in the cRIO file system so your filename is relative to the root directory for relative paths. I have only successfully written to the root directory. Not all write operations generate files. Some generate errors that are visible on the Diagnostic screen of the the Driver Station. I am not certain that the first images retrieved from the camera are usable, but then I am still fumbling around.

I open a DOS window and use FTP to retrieve files from the cRIO. I just FTP to the ip address of the robot. "ls" returns a list of files. "get [filename]" retrieves a file to you current home directory. "delete [filename]" removes files. It appears to be a standard FTP implementation so you find documentation on the web.

I put a ".jpg" extension on the file when I write it out ("snapshot.jpg"). I can specify explicitly how to format the file using a specific imaqWrite*File method, so it may not matter except to indicate to Windows the format of the file. I do not know what format file the ImageBase::Write method generates (extension may be significant here).
Reply With Quote
 


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


All times are GMT -5. The time now is 13:36.

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