LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial port sending 20 instead of 00

I am having an issue sending a Hex string out to my com port.  Any string I send that has bytes of 00 get converted into 20.  This seems like it should be a simple problem.... can anyone help?
 
 
Thanks,
 
 
Andrew
0 Kudos
Message 1 of 6
(3,092 Views)
You should post example code so that we can see exactly what's going on, but my guess is that your string doesn't have a null char (0) and it does have a space char (20h). The easiest way of telling is right clicking the string control and changing it to hex display.

___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(3,087 Views)

The string control was set to Hex before I entered the data in.  Here is a picture of the code.  (I have not written in anything for error handling or any checking to see if the message was read, at this point I am just taking a known value written to the comm port by other code and trying to see if it will work in labview) This is all directly written to a TI MSP 430.

 

 

 

 

 



Message Edited by labstew on 04-10-2008 02:27 PM
0 Kudos
Message 3 of 6
(3,082 Views)
There is a property that can be accesses via property node called Discard NUL character.  Make sure this is set to FALSE.
Randall Pursley
0 Kudos
Message 4 of 6
(3,053 Views)
I checked this and it was set to false by default.  I hardwired in a false constant just to be sure and tried it.  Still having the issue.
 
Thanks,
 
 
Andrew
0 Kudos
Message 5 of 6
(3,038 Views)

I got the code working, the issue was the allow nulls combined with a typo after I changed this :(.

 

Thanks for the help.

 

 

Andrew

0 Kudos
Message 6 of 6
(3,021 Views)