07-22-2009 01:29 PM
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
07-22-2009 01:31 PM
07-22-2009 01:33 PM
Right-clicking and selecting Update while typing disables the /code display mode. I am looking for ways to have both turned on.
07-22-2009 01:35 PM
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
07-22-2009 01:45 PM
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
07-22-2009 01:49 PM
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
07-22-2009 02:02 PM
You are right....I see the problem now.
I will try to work around it.
Thanks.
07-22-2009 02:23 PM
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
07-22-2009 02:40 PM
If I understood correctly, then you can just use the Search and Replace String function for that.