Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 15:06 03 May 2024 Privacy Policy
Jump to

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: Australia
Posts: 239
Posted: 11:05am 23 Nov 2012
Copy link to clipboard 
Print this post

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: Australia
Posts: 5911
Posted: 02:09pm 23 Nov 2012
Copy link to clipboard 
Print this post

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


To reply to this topic, you need to log in.

© JAQ Software 2024