LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Mark_Yedinak

Add a property to String indicators to limit the amount of data in the indicator

Status: Declined

Any idea that has received less than 6 kudos within 6 years after posting will be automatically declined.

Along with this idea it would be useful if we could set a maximum string size for string indicators. We can programmatically do this now but looking at the string length every time new data is appended to the string indicator's value however it would be convenient if we could simply set a maximum string length and have LabVIEW limit the size for us. Conceptually this can be thought of as similar to a lossy queue. As new data is appended old data will be deleted. The string indicator would never get larger than the set maximum. This would be useful for log or status type indicators on applications that are running for very long periods.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
2 Comments
tst
Knight of NI Knight of NI
Knight of NI

I don't think this is something which is correct to add to the string control, at least not for this use case. The reason is that today you can't append to a string - you have to get the data in the string and then rewrite all the data along with the new data. If that's the use case, then it might as well be done using a subVI or an XControl.


___________________
Try to take over the world!
Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 6 kudos within 6 years after posting will be automatically declined.