Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Memory and strings
Author | Message | ||||
vk4tec Senior Member Joined: 24/03/2012 Location: AustraliaPosts: 239 |
Hi I am now having great success with my GPS logger and I have another question I am writing alot to the SD CARD How much data can I build up in a string ? Is it possible for me to dump to SD card say every 30 lines of data ? msg$ = msg$ + line4 IF counter$ > 10 then save to SD CARD reset msg$ - Andrew - Andrew Rich VK4TEC www.tech-software.net |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6098 |
Strings are a maximum of 255 bytes long (plus one byte for the length). In memory, they use 256 bytes whatever length is used. You could use a string array to hold a number of records before saving. Each array element would use 256 bytes so there will be a limit to the size of the array (depending on your memory usage). Jim VK7JH MMedit MMBasic Help |
||||
Print this page |