LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Normal string ASCII characters are not shown after using string reversal.

In a VI that I have written, there is a point where I take a simple 5 character string and input it to a reverse string node.  I also have an indicator on the output of the reverse string node so I can look at the reversed string.  Both the input and output indicators are in normal display mode.   For the input indicator I can see the input string with no problem.  But on the indicator at the output of the reverse string node I see nothing.  If I then put each of the indicators in HEX display mode, both indicators display the hex equivalent characters of the original ASCII characters, and the output indicator shows the characters reversed from that of the input indicator, as expected.  So why when I am in normal display mode, are the characters in the output indicator not showing up?  Thanks.

0 Kudos
Message 1 of 3
(2,893 Views)

Have you got a new line character at the end of the input string? If so, your reversed string will begin with a new line, and a single line height indicator will show only the first (blank) line. Try making the output indicator bigger in height.

 

Rod.

 

0 Kudos
Message 2 of 3
(2,890 Views)

What are the ASCII values that you are trying to display?  Perhaps they are non-printable ASCII values.

 

Perhaps you can post a simple VI with the values in a string control and saved as a default.

 

EDIT:  After seeing Rod's message, that seems very likely, especially considering that there is likely an EOL character if you are doing serial communication with some other device.

Message Edited by Ravens Fan on 03-23-2009 12:04 PM
Message 3 of 3
(2,885 Views)