LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Match Pattern does not function properly when searching for a null character

Solved!
Go to solution

I'm using Match Pattern to extract a null terminated string from a response I'm getting from a device on a serial port. The VI is attached and below is a screenshot of the block diagram.

 

It works just fine with index set to 0, 1, or 2. When index is 3, I get the output shown below.

 

Why is Match Pattern not finding the null character?

 

Thanks!

 

block.JPG

 

output.JPG

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

By the way, Labview 2011.

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

Oh, I should also mention that the string control/indicators are set to hex display mode...

0 Kudos
Message 3 of 4
(2,047 Views)
Solution
Accepted by topic author Xooch

I'm a dope, need to remove the wire from the Offset control to the Match Pattern control.

 

DUH!

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