08-19-2008 02:38 PM - edited 08-19-2008 02:39 PM
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?
08-19-2008 04:01 PM - edited 08-19-2008 04:02 PM
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.
08-19-2008 04:18 PM - edited 08-19-2008 04:19 PM
08-20-2008 10:38 AM
Hi Ravens Fan,
It works as you described
Thanks
08-20-2008 01:29 PM
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.
08-20-2008 02:41 PM
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 indicators -SS
08-21-2008 09:18 AM
Hi Imtis,
It works extrem well, sorry I can not reply yesterday due to work load heavily!
Thnaks