01-21-2009 08:02 PM
Hi, I'm trying to find a way to read / write basic text files to and from the cRIO using the Windriver Workbench and C/C++ (WPILib), can anyone tell me how?
EDIT: I'm also looking for extra functionality with File I/O such as checking to see if a file exists.
01-22-2009 03:02 PM
Hi,
You should be able to read and write files using the standard file API in C (fopen, fread, fwrite, fclose, etc).
Regards,
Jeremy Billheimer
Applications Engineer
National Instruments
01-22-2009 03:04 PM
Thank you, I didn't know whether using those would work or not as I haven't been able to test with the cRIO because my team's final electrical board is in the making.
02-15-2009 06:55 PM
I was thinking about using this for recording a round. I assume if we shut it off after the round the fiel is gone. Is that correct?
Can I get FTP access to the cRIO to get the file off?
Thanks
02-16-2009 09:00 AM
When you write a file on the cRIO it's written to an internal flash drive, so you won't lose your data when you shut off power. You can copy the file using FTP when you turn the robot on again later, just FTP to the cRIO's IP address. By default there should be no password.
02-16-2009 12:34 PM
Also,
Here's a document detailing FTP to the cRIO:
FTP File Transfer to cRIO (Using Image Processing Requiring Template Images)
Best Regards,
~Nate
NI FIRST Support