LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Match Pattern Function does not seem to be doing what it is supposed to do. Can anyone help please?

I am trying to use Match Pattern Function to separate a string of different signals I receive.
I have cascaded 3 Match Patterns in order to separate 3 different signals from a string. It does not work properly. I have attached the test file herewith.
I am not sure if I am using wrong "Matching patterns'.
I used tab, newline and space to match the patterns.
0 Kudos
Message 1 of 6
(2,901 Views)
Your VI works fine. If you use Space as the Pattern in all three cases the results are Heartrate = "quick", Pressure = "jumped\sover\sthe\slazy\sdog.", and Temperature = "brown\sfox" This is what is expected for your test string.

Can you show us an example fo your data string and how you need to parse it?

Lynn
0 Kudos
Message 2 of 6
(2,901 Views)
You should eliminate the wires connecting offset past match to the offset of the next function. When you do that, you're telling the Match pattern to skip doing a match on the first x number characters. If the character you're searching for is before the offset, it will not be found.
Message 3 of 6
(2,901 Views)
Dennis:
Thanks alot. You were right. It works ok when I eliminate the wires.
Thanks man.
0 Kudos
Message 4 of 6
(2,901 Views)
Dear Lyn
I discovered my error. I was supposed to eliminate the wires between the offset bits of one match pattern to another and it works fine then.
I appreciate your help however.
Thanks alot for your help.
0 Kudos
Message 5 of 6
(2,901 Views)
Dear Lyn
I discovered my error. I was supposed to eliminate the wires between the offset bits of one match pattern to another and it works fine then.
I appreciate your help however.
Thanks alot for your help.
0 Kudos
Message 6 of 6
(2,901 Views)