07-08-2009 03:37 PM
Hello averybody:
I need to display text data in text string (or text box) and my data has some "Tab" but the text string is not displaying data like wordPad or hiperterminal
with Putty/Hiperterminal: port1.jpg
with LabView: port1-2.jpg
thank you
07-08-2009 03:47 PM
07-08-2009 04:45 PM
07-08-2009 04:59 PM - edited 07-08-2009 05:02 PM
Sorry, but none of last solutions works, is better but still is deleting tab's., remember the important is the "TAB".
here is the real data in .txt
07-08-2009 05:10 PM
In your text indicator, choose '\' Codes Display to see where your tabs are missing.
07-08-2009 05:16 PM
The tabs aren't missing - they're there. The problem is that the tabs are being used to move to a specific column.
To OP: Unfortunately, the string indicator has no concept of "columns", which is what that output is trying to do by using tabs. You can write code to basically parse each line and replace tabs with a certain number of spaces based on where the tab is (i.e., in some cases it might be 4 spaces, and in other cases it would be less), but I don't think that's worth the effort.
07-08-2009 05:19 PM - edited 07-08-2009 05:28 PM
Weird,
your data looks fine if pasted into Open Office.
I think the problem has something to do with the data stream mixing spaces and tabs a bit randomly (this is always a no-no!). Maybe whoever wrote the (embedded?) code to display the status output did the formatting a little carelessly, so that it displays fine in a terminal, but it is not really formatted properly.
07-08-2009 06:40 PM
OK I think I understand. But, just to check, what you want to do is display the text you have read on a LabVIEW indicator formatted into rows and columns mimicing a "normal" text editor display.
Is this correct? (if not, kindly disregard the following)
LV string indicators display \t (the tab) as a single space. so either you will need to play with the whitespace (search and replace "\t" with a variable number of spaces "\s" or you need to use another type of control. I would suggest that the "System Rich Text Box" control in the Active X control pallate would be useful.
Tip on Active X anyone?
07-08-2009 07:04 PM
Yes it is correct, I'll try with rich Text
thank you
07-10-2009 10:43 AM
Still with the same problem.
I try using Rich Text but I can't.
any body ideas?
thank you