キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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

すべてをダウンロード
0 件の賞賛
メッセージ1/11
4,324件の閲覧回数
The easiest way to do this would be by changing Font of Text Return to Courier and adjust the size, as you need.
0 件の賞賛
メッセージ2/11
4,307件の閲覧回数

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 件の賞賛
メッセージ3/11
4,285件の閲覧回数

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 件の賞賛
メッセージ4/11
4,276件の閲覧回数

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

 

ロボット ハッピー 

0 件の賞賛
メッセージ5/11
4,250件の閲覧回数

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 件の賞賛
メッセージ6/11
4,244件の閲覧回数

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 件の賞賛
メッセージ7/11
4,242件の閲覧回数

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? 


"Should be" isn't "Is" -Jay
0 件の賞賛
メッセージ8/11
4,210件の閲覧回数

 

 

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

thank you

0 件の賞賛
メッセージ9/11
4,205件の閲覧回数

 

Still with the same problem.

I try using Rich Text but I can't.

any body ideas?

 

thank you

0 件の賞賛
メッセージ10/11
4,147件の閲覧回数