10-09-2013 12:02 PM
hello,
I am displaying the raw data from the Visa Read port in Hex format which is straight forward. I am concatenating the strings with a shift register and adding a Carriage Return to the string to display for each buffer so it scrolls in the window but in the Hex display format, it does not recognize the CR.. It just appends the data to the end of the previous data. It will display the 0D as data. How can i go to the next line each time I display the Visa Read buffer contents in this mode..
thanks
10-09-2013 12:07 PM
It sounds like you want a hybrid type of display which LabVIEW doesn't have.
What you can do is take your string and convert all of your characters to a hex string, except those characters which are a carriage return or linefeed. Then display that in a string indicator set for normal display mode.
10-09-2013 12:50 PM - edited 10-09-2013 12:50 PM
@Roadrunna wrote:
hello,
I am displaying the raw data from the Visa Read port in Hex format which is straight forward. I am concatenating the strings with a shift register and adding a Carriage Return to the string to display for each buffer so it scrolls in the window but in the Hex display format, it does not recognize the CR.. It just appends the data to the end of the previous data. It will display the 0D as data. How can i go to the next line each time I display the Visa Read buffer contents in this mode..
thanks
I'm a little confused why you would want to add a CR/LF to a string indicator displayed in hex. It seems to me that most people would just format the indicator so that X number of characters are shown, then make sure the vertical scrollbar is on the right-hand side. From your question it sounds like you may:
(1) Want to separate strings coming from different inputs, even though you need to concatenate them into one string for further processing? If so, you can do that just by having a separate indicator for each one. But you would have thought of that.
(2) Want to separate strings coming from the same input, but separated in time (different messages) where you get an indication (a termination character, or time lag, etc.) of when an individual message ends? If so, I wouldn't know how to put a blank line in (as RavensFan said, this is not a normal text indicator thing), but after each message you could introduce your own line's worth of characters which is not likely to show up in the data stream, say 1111 1111 1111 1111 1111 1111, which would give you a visual indication (but don't add it into the string which has to be processed, only your indicator).
or (3) Want to make sure that the text box always keeps up with the end of the character string, no matter how long it gets. This one's been answered before, and there is a KnowledgeBase page on it: How Do I Modify a Text Indicator So the Scrollbar is Always at The Bottom-Most Position?
Or maybe something else. Without a more-detailed description of your question (and the code you are presently using in the VI - NOT A PICTURE OF THE CODE!) I couldn't help you any further.
Cameron
10-09-2013 03:48 PM
Why not do the binary to Hex conversion yourself and add the carriage/linefeed where you want and display it in normal text mode?