LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

On string controls, "update while typing" is not working with '/' (slash) code display?

I am using LabVIEW 8.5.  If "Update while typing" is turned on, then the string display is forced to "normal" display.  How can I configure the string to display '/' codes (slash codes) and have the "update while typing" enabled?

 

Thanks,

Ganesh

0 Kudos
Message 1 of 9
(3,440 Views)
right click the string control or indicator and go to '/' codes display
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 9
(3,437 Views)

Right-clicking and selecting Update while typing disables the /code display mode.  I am looking for ways to have both turned on.

0 Kudos
Message 3 of 9
(3,434 Views)

That request


Ganeshs wrote:

I am using LabVIEW 8.5.  If "Update while typing" is turned on, then the string display is forced to "normal" display.  How can I configure the string to display '/' codes (slash codes) and have the "update while typing" enabled?

 

Thanks,

Ganesh


is not very well defined. Say I wanted to specify the space character which (I think is "\20") and I enter "\2" but have not enter the "0", how would LV know I was thinking about the space and not another character?

 

Just thinking out loud,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 9
(3,433 Views)

Ben,

 

Space character is \s in slash code and x20 in hex.  I would think that when the string control is in slash codes mode and whenever a \ is entered, LabVIEW or the user software should expect a character following it (for eg: \r, \n, \t, \s etc).  If someone wants to enter a \ character then he should enter \\.

 

This is what I expected LabVIEW to do.

 

Ganesh

0 Kudos
Message 5 of 9
(3,427 Views)

But aren't there non-printable characters (yes space was a bad example) like EOT STX that must be entered as "\00" or "\02"?

 

Ignore me if I'm wrong.

 

I would think that we would have to use a normal control and do some coding to turn the slash codes into there equivelent strings.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 9
(3,423 Views)

You are right....I see the problem now.

 

I will try to work around it.

 

Thanks.

0 Kudos
Message 7 of 9
(3,410 Views)

Ben,

 

What LV functions can I use to programmatically convert strings from slash code to normal and vice versa.  For eg:  I am reading a test script which as \r in the text.  I am passing this command string to LV VISA serial write.  I want LV to interpret this as carriage return and not as 2 characters '\' and 'r'.

 

Thanks,

Ganesh

0 Kudos
Message 8 of 9
(3,400 Views)

If I understood correctly, then you can just use the Search and Replace String function for that.

 

0 Kudos
Message 9 of 9
(3,389 Views)