LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How I display strings as a standard Text Box?

I would like to display status (a string) of an event continuously & line-by-line, how I do that with labview? In CVI, I only have to create a Text box then use:

 

InsertTextBoxLine (panelHandle, PANEL_TEXTBOX, i_cnt, vi_buf);

i_cnt++;

 

I try with List Box, Combo box & String with all properties but fail to do the same with the CVI.

 

 

Any one can help?

Message Edited by plit string on 08-19-2008 02:39 PM
0 Kudos
Message 1 of 7
(5,724 Views)

Store the data you are writing to the text box in a shift register.  Concatenate new data to the end of the string and use the carriage return character to start a new line.

Message Edited by Ravens Fan on 08-19-2008 05:02 PM
Message 2 of 7
(5,701 Views)
If you want to use a listbox, you can do it with property nodes.
Message Edited by lmtis on 08-19-2008 04:19 PM
Message Edited by lmtis on 08-19-2008 04:19 PM
Jim

LV 2020
Message 3 of 7
(5,692 Views)

Hi Ravens Fan,

 

It works as you described

 

Thanks Smiley Happy

0 Kudos
Message 4 of 7
(5,654 Views)

I'm glad to hear that.  One thing you may want to do if this is going to be a program that runs a long time collecting a lot of data in the string indicator would be to put in a case structure that eliminates some of the oldest data in the event the string begins to exceed a certain length.

Message 5 of 7
(5,631 Views)

Couple of tips to add.  If you right click you can show the vertical scroll bar.  The horizontal can be set using a property node.  Finally you may want to set your scroll position in the loop, so the last value written is the one displayed.  There are many discussion on the forum regarding this just do a search.  This is one of my favorite indicatorsSmiley Wink  -SS



Message 6 of 7
(5,625 Views)

Hi Imtis,

 

It works extrem well, sorry I can not reply yesterday due to work load  heavily!

 

Thnaks Smiley Happy

0 Kudos
Message 7 of 7
(5,597 Views)