LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Text String formating

 

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

Download All
0 Kudos
Message 1 of 11
(4,120 Views)
The easiest way to do this would be by changing Font of Text Return to Courier and adjust the size, as you need.
0 Kudos
Message 2 of 11
(4,103 Views)

Any non-proportional font will do, Courier is just one of them... Other options are Lucida or Terminal on standard WinXP.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 11
(4,081 Views)

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

Message Edited by lmontoya on 07-08-2009 05:02 PM
0 Kudos
Message 4 of 11
(4,072 Views)

In your text indicator, choose '\' Codes Display to see where your tabs are missing.

 

Robot Happy 

0 Kudos
Message 5 of 11
(4,046 Views)

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.

0 Kudos
Message 6 of 11
(4,040 Views)

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.

Message Edited by nrp on 07-08-2009 11:28 PM
0 Kudos
Message 7 of 11
(4,038 Views)

OK I think Smiley Indifferent 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? 


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 11
(4,006 Views)

 

 

Yes it is correct, I'll try with rich Text

thank you

0 Kudos
Message 9 of 11
(4,001 Views)

 

Still with the same problem.

I try using Rich Text but I can't.

any body ideas?

 

thank you

0 Kudos
Message 10 of 11
(3,943 Views)