LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string indicator append

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 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 15
(5,522 Views)

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.

 

Message 2 of 15
(5,520 Views)

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?

Message 3 of 15
(5,517 Views)

Nicely said Darin (of course War and Peace was written in Russian- so I don't know if the math is applicableSmiley Wink

 

We- need a snippit of this "Odd" indicator


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 15
(5,509 Views)


of course War and Peace was written in Russian- so I don't know if the math is applicableSmiley Wink

 


In Russian, War and Peace has 460000 words and the average length of a russian word is 6.36 letters, so not far off.  Smiley Wink

 

And yes, let's see the snippet.

Message 5 of 15
(5,506 Views)
Darin- I'm not even going to check!  I KNOW you looked it up

"Should be" isn't "Is" -Jay
Message 6 of 15
(5,498 Views)

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?

Message 7 of 15
(5,489 Views)

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. 

 

Message 8 of 15
(5,478 Views)

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

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 9 of 15
(5,453 Views)

STRCONST.PNG

1 picture in lieu of 1000 words Constants set to hex display


"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 15
(5,446 Views)