V_T_S Posted September 19, 2008 Report Share Posted September 19, 2008 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. Quote Link to comment
jcarmody Posted September 20, 2008 Report Share Posted September 20, 2008 QUOTE (Vidula S @ Sep 18 2008, 12:54 PM) Any suggestions. 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 ) 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! Jm I finally have a LabVIEW icon under my name!!! :laugh: Yippee! Quote Link to comment
jcarmody Posted September 21, 2008 Report Share Posted September 21, 2008 QUOTE (jcarmody @ Sep 19 2008, 10:28 AM) I'd do it like this: That's how I'd do it before kicking myself for making it harder than it needs to be. Just use a shift register in a while loop. http://lavag.org/old_files/post-7534-1221938729.vi'>Download File:post-7534-1221938729.vi Jm Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.