Go to Post If I had a mul-let then I'd look like Andy Baker used to and that would be ba-ad, really ba-ad. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 09-12-2011, 18:27
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 114
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Writing a logger for cRIO - flash memory and wear leveling

Hello all,

I wrote a small logging utility that has many VI's pushing log messages onto a queue, and one VI periodically consuming that queue and writing log events to disk.

How concerned should I be about wearing out the memory of the cRIO? What best practices can be followed to extend the lifetime of the device?

For example, I have read that the minimum write size for the vxWorks system is 8192 bytes. My current implementation caches log lines until it is approximately ~8000 bytes long and then writes to disk. By doing this, am I actually avoiding multiple writes, or is it equivalent to flushing every line (~100 bytes) to disk immediately?
Reply With Quote
  #2   Spotlight this post!  
Unread 10-12-2011, 01:27
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Writing a logger for cRIO - flash memory and wear leveling

I think your producer consumer model is the right approach reguardless of the media you are writing to. How often do you erase the data and write new data? Maximizing your passages before writing may be beneficial, but I would have to check the documentation first. The API may already be doing this, as well as wear leveling.
Typically in a professional environment, there would be too much data to log on the cRIO anyways, and we would be sending that data back to a computer. (E.G. via the driver station.)
If you are really worried about storing log data you course try writing it to a HDD or I an USB flash drive on the driver station.


Please excuse any typos and mistakes, this was posted via my phone.
__________________
Mike B
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


All times are GMT -5. The time now is 08:16.

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