LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP and python

If I run the UDP LV examples, I can receive a string; compare that string with a string constan; and get true for an answer.  I have python code that sends the exact same string.  I can receive it. In a text window it appears to be exactly the same as what I sent from the LV example terminating characters included.  However, the comparison with the string constant is always negative. 

Thoughts?

0 Kudos
Message 1 of 3
(2,395 Views)

Does the Python string contain a NULL character at the end? Is the Python string Unicode encoded? Have you compared the lengths of the strings? Have you changed the indicators displaying the strings to display as hex? These are all things you should do to see why the comparision doesn't match.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 3
(2,392 Views)

Thanks.  I had look at the display with the "\" characters but not in the hex display.  

0 Kudos
Message 3 of 3
(2,384 Views)