LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it a bug or what?

Solved!
Go to solution

Please find the attached VI, its pretty simple function but its behaviour is unexpected.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 1 of 4
(2,151 Views)
Solution
Accepted by topic author moderator1983

Probably not a bug.  Maybe a little lacking in the documentation area.

 

Don't use \ codes display in the Pattern input.  Use a normal string.

Your first pattern should be [\r][\n]\*\*Stop\*\*.

 

Your second pattern should be \*\*Stop\*\*.

Message 2 of 4
(2,138 Views)

Thank you. Smiley Happy


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 4
(2,131 Views)

It's not a bug! The Match Pattern function allows to use some special characters such as the "*" that are interpretated from the function like "the rest of the string". If you want the function works properly before these specials characters you have to insert a "\" character to indicate to the function that that is a normal char. See your VI modified to understand how the function works.

Ricky
Italian Developer engineer
www.www.selt-sistemi.com
0 Kudos
Message 4 of 4
(2,124 Views)