LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Highlight the string being read

Hi,
 
I have a text file. I am able to display the text in it to the Labview front panel. Now I want to read each line displayed on the screen in such a way that the line being read gets highlighted, or at least the cursor should blink at the string being executed. I'm building a compiler kind of an application. In the standard compilers when line by line execution mode is selected, then the line being executed gets either highlighted or the cursor blinks at the point of execution. I want to achieve that to make my application look like a standard compiler. Please help me out with this.
 
Regards,
Giridhar Rajan
Automation Engineer
Cruiser Controls
Mumbai, India
0 Kudos
Message 1 of 2
(2,327 Views)

I would suggest to load your lines into a listbox. This way it is much easier to highlight a line by simply wiring the desired line number to the listbox indicator.

The attached example shows one possibility. (LabVIEW 7.0)

(It is of course also possible with a string indicator, but the program would be much more complex. I always recommend to keep things simple :))

Message Edited by altenbach on 07-16-2005 10:08 AM

0 Kudos
Message 2 of 2
(2,327 Views)