Jump to content

Enable/disable text indicator scrolling


Recommended Posts

Hello. I'd like to use text indicator in my GUI. I have another VI will dumps the raw data continuously to this text indicator. This text indicator in my GUI has vertical scroll bar and displays only the last 1000 characters, the scroll position is always at the bottom. I want to add enable and disable scrolling feature to it

When the scrolling is disabled I want the text indicator to stay where it is and not display any new data

When the scrolling is enabled I want the text indicator to display all that data which has been accumulated after disabling the scrolling.

I tried various options but nothing works the way I want. Any suggestions.

Link to comment

QUOTE (Vidula S @ Sep 18 2008, 12:54 PM)

I'd do it like this: http://lavag.org/old_files/post-7534-1221834955.vi'>Download File:post-7534-1221834955.vi

Perhaps there's a way to use property nodes for the indicator? I don't know. Maybe somebody else will comment on this. (I hope :wacko:)

This VI uses a boolean 'enable' control and a boolean 'last enabled state' shift register, and another String shift register to store the data while the indicator is disabled. The key is to catch when the enabled state changes and then put the current data (either from the indicator or the shift register) into the appropriate container. These are the 'enable' states & transitions I was interested in:

start/stay TRUE - append data to string indicator

start/stay FALSE - append data to shift register

TRUE - FALSE - put string indicator value into shift register and append data there

FALSE - TRUE - put shift register value into string indicator and append data there

I hope this helps!


I finally have a LabVIEW icon under my name!!! :laugh:


Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.