LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Match Pattern PASS OR FAIL

I am using two  Match Pattern Functions, One to find the Test data in the string that I am looking for and one to pasrse the string after that for a PASS or FAIL condition. How would I set the regular expression to look for PASS or FAIL?

 

Thanks Chuck

0 Kudos
Message 1 of 9
(4,071 Views)
You'll need to use Match Regular Expression rather than Match Pattern.  Then you can use "(PASS|FAIL)" (without quotes) as your regular expression.
0 Kudos
Message 2 of 9
(4,059 Views)

Take a look at the Match Regular Expression.vi and the regex below, this should do what you are looking for. (A minute too slow)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Message Edited by jmcbee on 03-31-2009 01:14 PM
0 Kudos
Message 3 of 9
(4,055 Views)

Hi chuck,

 

when your condition string is following right after the first match then you may use "match true/false string" too.

Might be faster then using regular expressions...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 9
(4,029 Views)

Hi guru "" and "jon_mcbee"

 

May i know how you guys managed to give these good example and information which easily understand immediately. If possible can you attach the link to share your good study work!

0 Kudos
Message 5 of 9
(3,658 Views)

They are managing by experience. For above example you can find in help only.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 6 of 9
(3,652 Views)

Hi all,

 

The above function help is called Context Help and can be found by pushing Ctrl + H and using the mouse to hover over an object. The context help will display pertinent information regarding the object and a link to a more detailed help page.

 

If you are looking for example VIs they can be accessed by clicking on the Help icon on the LabVIEW toolbar and selecting Find Examples....

This will bring up a separate dialog box which will allow you to search through all the supplied examples that come with the LabVIEW installation. 

 

Mark B

Applications/Systems/Test
National Instruments | AWR Group
0 Kudos
Message 7 of 9
(3,627 Views)

Regular Expressions are an incredibly powerful tool, but they are a programming language in and of themselves. Here is a link to a thread about them that might be helpful

 

http://forums.ni.com/t5/BreakPoint/Regular-Expressions-Board/td-p/1187799/highlight/true

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 8 of 9
(3,607 Views)

Hi Ranjeet_Singh and PeanutButterOven,

 

Thanks for sharing these basic info. Actually a few week ago i finding ways to be able to set some configuration Ini file. However these basic Help didn't show how you may config Ini file setting.
 
I had read a lot of info on NI forum and some other web site, finally I found it here with a simple way yet effective to achieve what I want. It as simple as putting a vertical bar as I had indicated inside the Ini file as below. And this simple method can't found at NI manuals at all. It is hassle using to search for Example and information, but luckily I had found it HERE a simple step to be use effectively and productivity.
 
[Section]
Key=A01|B01.
 
 
Hi LV_Pro,
 
Thank you for sharing your link attacmenth. It is amazing to see some great experts providing the code snippet and examples for better understanding.
0 Kudos
Message 9 of 9
(3,565 Views)