View Single Post
  #5   Spotlight this post!  
Unread 23-05-2011, 03:05
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Non-volatile memory?

Quote:
Originally Posted by mdrouillard View Post
As I am not too familiar with Java but am trying to do file io to the crio's non-volatile memory using C++. In the 2011 wplib I simply do not see an equivalent class as fileconnector, as suggested by Ron in the Java suggestion. Therefore does anyone have sample code that could write something to the crio in c++ . Perhaps I simply need to include stdio.h or a basic library, but then I must as the question of whether writing to the filesystem is allowed or if there are certain FRC restrictions on methods regarding this.

Thanks to, and thoughts from everyone are welcomed.

Michael
In C++ you can use the typical file i/o library functions to access the disk. There are no limitations related to FRC. It is a flash disk, though, so very high numbers of writes will damage the flash.

-Joe
Reply With Quote