LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Limit to Single Line Not Working

I am using LV 6.0. It appears that the String Control property "Limit to
Single Line" does not prevent multiple line in the string. What's up?
0 Kudos
Message 1 of 7
(3,742 Views)
It does on mine. Maybe you could attach the VI.
0 Kudos
Message 2 of 7
(3,742 Views)
Probably you are talking about
- modifying the value inside the block diagram
or
- editing with codes display and revert to normal display
If that's the case, you're right. Maybe this option is just intended to avoid including ENTER key press.
Let us know if you find something more
0 Kudos
Message 3 of 7
(3,742 Views)
I have a String control on my front panel. The pop-up menu has "Limit to
Single Line" checked. When running the VI, if I type in more data then the
physical size of the control, it scrolls down to a new line. When I send the
string out the serial port I see a carriage return in the stream. I would
think "Limit to Single Line" would limit the data in the string to a single
line. Most other programming languages have this type of property on a text
control, and it limits the text to a single line. LV help would make you
think this is how it should work. Any ideas? Thanks...Ed

"Lab Viewer" wrote in message
news:50650000000500000015460000-1002247793000@exchange.ni.com...
> Probably you are talking about
> - modifying the value inside the block d
iagram
> or
> - editing with codes display and revert to normal display
> If that's the case, you're right. Maybe this option is just intended
> to avoid including ENTER key press.
> Let us know if you find something more
0 Kudos
Message 4 of 7
(3,742 Views)
Hi again,
Even if the control goes to a second line when you type more data, there's no carriage return or line feed (I checked with both search VIs and indicators with codes display enabled). So, maybe your carriage return is apended by some other VI. If still have problems, post that VI.
Good luck!
0 Kudos
Message 5 of 7
(3,742 Views)
> I have a String control on my front panel. The pop-up menu has "Limit to
> Single Line" checked. When running the VI, if I type in more data then the
> physical size of the control, it scrolls down to a new line. When I send the
> string out the serial port I see a carriage return in the stream. I would
> think "Limit to Single Line" would limit the data in the string to a single
> line. Most other programming languages have this type of property on a text
> control, and it limits the text to a single line. LV help would make you
> think this is how it should work. Any ideas? Thanks...Ed
>

The Limit to Single Line limits what the user can do with the
panel. It prevents the entry of a carriage return except through
a paste operation. Looki
ng at it on my computer, it prevents
the carriage return as it should, and when too many characters
are typed in, it does wrap the text to additional lines, but it
doesn't insert a carriage return. In fact, the string control
never does this without explicit user interaction.

Greg McKaskle
0 Kudos
Message 6 of 7
(3,742 Views)
It does limit it to a single line where a single line is defined as a bunch of characters terminated by a carriage return. LV help says that. What you want is something to limit the number of characters. There was a recent discussion on info-labview about limiting the number of characters a user may type. You can search info-labview archives by going to http://infolv.brianrenken.com/. Good luck.
0 Kudos
Message 7 of 7
(3,742 Views)