LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parse test output


I have a test running on our system that utiilizes code on several different modules/processors.  Therefore, failure output can come from several sources and will be in several different formats (e.g. Fail, failed, Error, ERROR, etc).  The test runs in a countinuous loop outputting results for each iteration.  The VI will parse the output from UUT serial port and set a boolean True/False to indicate Pass/Fail when complete.  It needs to verify that it saw at least one "passed" message and confirm that is saw no error messages.   I am having a difficult time trying to determine how to implement with the available labview string functions.  Any help would be greatly appreciated.

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

Hi bolinger,

i think it is very difficult to catch what you want. Can you give us more informations? If you already have two arrays, one for pass/fail and one for Error/NoError then i think the attached picture can help you.

Mike



Message Edited by MikeS81 on 02-06-2008 06:14 AM
0 Kudos
Message 2 of 3
(2,651 Views)

Hi bolinger,

 

If I understood you correctly...

If you know all of the available pass/fail strings, meaning, if you know all of the available different error codes such as fail, pass, FAIL, FAILED, passed, error, etc... then this can be done by building an array of the different possible error codes, then searching the array by using "Search/Replace string.vi" with the particular status code, the replacement input should just be the same string as the one you are searching for to keep the integrity of the array.  If the number of replacements is not 0, then this would mean that that particular error code was found.  This is one out of many possible ways to do this, you can also use case structures too.

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