LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is /00 in cods display?

Was trying to get rid of whitespace in this expression "LOC "

Thought I had a whitespace at the end, or a tab. Tried deleting both and could not get it to go away.

Switched to codes display and got \00. What is this?

Thanks.

0 Kudos
Message 1 of 4
(2,390 Views)

/00 is "null", or 0x00 in hex. You generally cannot type this with a normal keyboard in normal operation.

See code 0x00 here:

https://www.asciitable.com/

 

Basically, switch to /codes display, then you can delete it and then switch back.

 

How'd you get it in there anyway? Was it a string sent from another program or device? The reason I ask is because in some languages, strings are defined in memory as a "start" memory address, and the string is valid until it sees a Null character, or 0x00. These are called "null terminated" strings.

 

LabVIEW uses a different method, where it prepends the string length to the beginning of memory and doesn't need the null character to terminate the string. However, if you open a string from another program that DOES need the null terminator, you could wind up having a bunch of extra null characters in your string.

0 Kudos
Message 2 of 4
(2,372 Views)

@mshaske wrote:

Switched to codes display and got \00. What is this?


A NULL character.  If you are interfacing with any C libraries, strings will be terminated with a NULL character.  You can get rid of it with a Match Pattern.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(2,370 Views)

You can use the "Printable?" function from the Comparison palette in LabVIEW to parse a string to more aggressively filter out characters like this, since the standard "Trim Whitespace" just looks for tab/linefeed/return/space.  That way it's a general way to trim anything, instead of a search specifically for "\00".

0 Kudos
Message 4 of 4
(2,312 Views)