03-16-2010 05:19 PM
Hi all,
I am not sure why, but I kept thinking that if I write to a string indicator in a loop, only the string from the current iteration will shoe up on the indicator. I just realized that I was wrong, even the result keep staring at me in the face. It seems like the string from each loop iteration will continue to append during each write.
My question is if I write to a string indicator in a loop, is there a memory limit on how much previous text would be displayed? If so, what's the limit? Is there a way to adjust it?
Yik
03-16-2010 05:26 PM
A string indicator does not have a built-in history like a chart. It will display what you write to it. If you have it inside a loop then to see what you are seeing you obviously must have it wired to an operation where you are concatening a new string onto a buffer, rather than wiring it to the string for an instance of a loop.
My question is if I write to a string indicator in a loop, is there a memory limit on how much previous text would be displayed? If so, what's the limit? Is there a way to adjust it?
I have no idea what you are asking here. What do you mean by "how much previous text would be displayed"? As I said, the string indicator displays whatever you've wired to it.
03-16-2010 05:39 PM
War and Peace contains roughly 560000 words and the average length of an English word is roughly 5 letters, so that novel will take up about 3 Mb in a string indicator. On a modern computer, that is peanuts.
What exactly are you trying to indicate?
03-16-2010 06:47 PM
Nicely said Darin (of course War and Peace was written in Russian- so I don't know if the math is applicable![]()
We- need a snippit of this "Odd" indicator
03-16-2010 06:55 PM
of course War and Peace was written in Russian- so I don't know if the math is applicable
In Russian, War and Peace has 460000 words and the average length of a russian word is 6.36 letters, so not far off. ![]()
And yes, let's see the snippet.
03-16-2010 07:35 PM
03-16-2010 10:41 PM
Darin.K wrote:War and Peace contains roughly 560000 words and the average length of an English word is roughly 5 letters, so that novel will take up about 3 Mb in a string indicator. On a modern computer, that is peanuts.
What exactly are you trying to indicate?
Maybe the sequel?
03-16-2010 11:23 PM
smercurio_fc wrote:
Darin.K wrote:War and Peace contains roughly 560000 words and the average length of an English word is roughly 5 letters, so that novel will take up about 3 Mb in a string indicator. On a modern computer, that is peanuts.
What exactly are you trying to indicate?
Maybe the sequel?
The Napoleonic Empire Strikes Back.
03-17-2010 10:50 AM
Hi all,
You were right. I added a string concat in there, and I forgot to take it off. See the attached new code pic with the fix.
I have one more question. I need a low down on the differences between carriage return, line feed, and end of line constant in a txt file and also in a string indicator.
I would like to know more, since there is an extra space in front of the string of all the line subsequent to the first line.
I want to get ride of that extra space. The extra space appear on the string indicator and not the txt file. Feel free to comment on my code.
Yik
03-17-2010 11:06 AM
1 picture in lieu of 1000 words Constants set to hex display