LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a line feed without a carriage return?

How do i get a carriage return without a line feed in a string indicator?
Every time the string output recognices a \r it also uses a new line. How do i switch this off?

Kind regards,

Yours Martin Bock
0 Kudos
Message 1 of 7
(4,611 Views)
You could try right clicking on your string and selecting "Hex Display". Then you enter 0A or 0D as needed. One of them is a carriage return and the other is linefeed. You might be able to find this from a hex table, which I don't have with me.

Shan Pin Koh
0 Kudos
Message 2 of 7
(4,611 Views)
This is not what is asked
greetings from the Netherlands
0 Kudos
Message 5 of 7
(4,611 Views)
Not sure if you mean transmit or receive, or just compare, but have you checked the 'Line Feed' and 'Carriage Return' VIs (work more like preformatted constants) in the Functions>Strings palette? They work good with Labview strings.
Good Luck, Doug
0 Kudos
Message 3 of 7
(4,611 Views)
I'm sorry, It works as you see. You cannot differentiate between cr / crlf/ lf in a string indicator.
Otherwise it would be possible to write lines over each other. Another problem is the range of operating systems labview runs on. Only DOS (or a successor of dos) uses crlf, unix uses linefeed only and Mac uses cr only for a linebreak.
greetings from the Netherlands
0 Kudos
Message 4 of 7
(4,611 Views)
But this is what i wanted! write one line over each other. thanks for your help. i have to try some string function to realize what i want.
Martin
0 Kudos
Message 7 of 7
(4,611 Views)
Out of the G programing reference manual:

\f Form Feed
\n Line Feed
\r Carriage Return
0 Kudos
Message 6 of 7
(4,611 Views)