Go to Post Students can learn to drive on whatever they give us. Ramps, carpet, grating, HDPE, lexan, diamond plate, regolith, other robots the driver station wall, referees, stairs, Dean, the bar, goals, the scorer's table, you name it, I've watched robots somehow manage to drive on it - Peter Matteson [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-03-2010, 01:02
imac256 imac256 is offline
Registered User
AKA: Ian McInerney
FRC #2022 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2009
Rookie Year: 2009
Location: Aurora, IL
Posts: 30
imac256 is a glorious beacon of lightimac256 is a glorious beacon of lightimac256 is a glorious beacon of lightimac256 is a glorious beacon of lightimac256 is a glorious beacon of light
cRIO File Writing Problem

My team is experiencing problems trying to write files to the cRIO. I have examined the threads on CD, and noticed you have to use the function "Priv_SetWriteFileAllowed(1);" to allow writing to the cRIO flash memory. I call this function in our program while including <WPILib.h> and I get the error that it is an undeclared function call.

I am wondering if I am possibly not including the correct header file for that call, or if I even need to call that anymore to access the memory.

Thanks,
-Ian McInerney
Programmer, Team 2022
Reply With Quote
  #2   Spotlight this post!  
Unread 09-03-2010, 10:54
davidalln's Avatar
davidalln davidalln is offline
World's Worst Coder
AKA: David Allen
FRC #2415 (The Westminster Wiredcats)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Atlanta, GA
Posts: 108
davidalln is on a distinguished road
Send a message via AIM to davidalln
Re: cRIO File Writing Problem

I believe that Pirv_SetWriteFileAllowed(1) applies to images (I read that somewhere). I have written a Log class that successfully writes to the cRIO without the use of that function:

http://gist.github.com/296373

Also, this thread might be of use to you: http://www.chiefdelphi.com/forums/sh...ad.php?t=79548
__________________
SANTOSH ANDREW DECKER RICK WYNNIE SEAN DEREK MATT
(alamo (semis), p'tree (CHAMPS!), nc (CHAMPS!), newton (quarters))


Best four years of my life. Thanks to everyone who made it happen.

Last edited by davidalln : 09-03-2010 at 10:57.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-03-2010, 14:01
imac256 imac256 is offline
Registered User
AKA: Ian McInerney
FRC #2022 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2009
Rookie Year: 2009
Location: Aurora, IL
Posts: 30
imac256 is a glorious beacon of lightimac256 is a glorious beacon of lightimac256 is a glorious beacon of lightimac256 is a glorious beacon of lightimac256 is a glorious beacon of light
Re: cRIO File Writing Problem

Upon further investigation of the image library files, I found that the prototype for that function was not in the headers anymore, so I had to add one.

This is what it looks like:
IMAQ_FUNC int Priv_SetWriteFileAllowed(UINT32 enable);

Thanks for all your help.
-Ian McInerney
Programmer, Team 2022
Reply With Quote
Reply


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
Team 3132 - Sample code for writing to a file on the cRIO SteveGarward C/C++ 0 05-02-2010 07:26
Data File Writing ... cRIO vs. Driver Station Ziaholic NI LabVIEW 3 31-01-2010 15:20
Writing to DriverStation cRio screen alexjplant NI LabVIEW 2 17-01-2009 10:59
Reading binary data from a file and writing it in VB complete Programming 1 02-01-2006 21:21
Problem with reading and writing EEPROM DKolberg Programming 4 16-03-2004 19:29


All times are GMT -5. The time now is 02:48.

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