diff --git a/TeradyneICT.cs b/TeradyneICT.cs index 0e1e6fc..df06961 100644 --- a/TeradyneICT.cs +++ b/TeradyneICT.cs @@ -100,6 +100,7 @@ public class TestType {"XS", new TestType(){Description="MEAS ACZ XS",Unit=""}}, {"XP", new TestType(){Description="MEAS ACZ XP",Unit=""}}, {"ZM", new TestType(){Description="MEAS ACZ Z",Unit=""}}, + {"PS", new TestType(){Description="MEAS",Unit=""}}, }; Dictionary genFailures = new Dictionary() @@ -167,6 +168,7 @@ protected override bool ProcessMatchedLine(TextConverterBase.SearchFields.Search case "MainEvent": Event ev = mainEvents[(char)match.GetSubField("Event")]; + switch (ev) { case Event.Aborted: @@ -209,7 +211,7 @@ protected override bool ProcessMatchedLine(TextConverterBase.SearchFields.Search } //Skip UUT if it doesn't have any steps and staus == terminated - if( !(currentUUT.Status == UUTStatusType.Terminated && currentStep.StepOrderNumber <= 1) ) + if (!(currentUUT.Status == UUTStatusType.Terminated && currentStep.StepOrderNumber <= 1)) apiRef.Submit(currentUUT); } catch (Exception ex) @@ -242,9 +244,10 @@ protected override bool ProcessMatchedLine(TextConverterBase.SearchFields.Search if (meas != "") { currentStep = currentSequence.AddNumericLimitStep(stepName); - double measDouble = (double)ConvertStringToAny(meas, typeof(double), null, currentCulture); - double lowLimitDouble = ConvertFromToUnit((double)ConvertStringToAny(lowLimit, typeof(double), null, currentCulture), lowLimitUnit, measUnit); - double highLimitDouble = ConvertFromToUnit((double)ConvertStringToAny(highLimit, typeof(double), null, currentCulture), highLimitUnit, measUnit); + //double measDouble = (double)ConvertStringToAny(meas, typeof(double), null, currentCulture); + double measDouble = ConvertFromToUnit((double)ConvertStringToAny(meas, typeof(double), null, currentCulture), measUnit, lowLimitUnit); + double lowLimitDouble = ConvertFromToUnit((double)ConvertStringToAny(lowLimit, typeof(double), null, currentCulture), lowLimitUnit, lowLimitUnit); + double highLimitDouble = ConvertFromToUnit((double)ConvertStringToAny(highLimit, typeof(double), null, currentCulture), highLimitUnit, lowLimitUnit); string units = String.Format("{0}({1})", measUnit.Symbol, testType); if (lowLimit == "" && highLimit == "") ((NumericLimitStep)currentStep).AddTest(measDouble, units); @@ -286,7 +289,7 @@ protected override bool ProcessMatchedLine(TextConverterBase.SearchFields.Search Dictionary ExtraArguments = new Dictionary { - {"startProgramRegEx",@"(?[a-zA-Z]*:)?(?(?:\\[^\\]+)+\\)?(?[^\\]+)\.obc\x5B(?[0-9-A-Z]+ +[0-9:]+)"}, + {"startProgramRegEx",@"(?[a-zA-Z]*:)(?.*\\)?(?[^\\]+)\.obc\[(?.*)"}, {"partNumberRegEx", @"{FileName}(?[^_]+)_?" }, {"socketNumberRegEx", @"TOP_OF_LOOP-(?:(A)|(B)|(C)|(D)|(E)|(F)|(G)|(H))" } }; @@ -326,7 +329,7 @@ public TeradyneICT(IDictionary args) fmt.AddSubField("DateTime", typeof(DateTime), "dd-MMM-yy HH:mm:ss"); //Ignore //@31-JUL-12 14:18:51 SN MP3774501MRS050643E - const string regStartTest = @"^@(?[1-9-A-Z]+ +[0-9:]+) SN (?.+)"; + const string regStartTest = @"^@(?.*) SN (?.*)"; fmt = searchFields.AddRegExpField(UUTField.UseSubFields, ReportReadState.InHeader, regStartTest, "", typeof(string), ReportReadState.InTest); fmt.fieldName = "StartTest"; fmt.AddSubField("DateTime", typeof(DateTime), "dd-MMM-yy HH:mm:ss", UUTField.StartDateTime); @@ -341,8 +344,7 @@ public TeradyneICT(IDictionary args) //&25-AUG-12 14:11:33 //!25-AUG-12 08:56:29 //]25-AUG-12 08:59:07 - - const string regMainEvent = @"^(?[?""/&!\x5D])(?[01-9-A-Z]+ +[0-9:]+)"; + const string regMainEvent = @"^(?[?""/&!\]])(?.*)"; fmt = searchFields.AddRegExpField("MainEvent", ReportReadState.InTest, regMainEvent, "", typeof(string), ReportReadState.InHeader); fmt.AddSubField("Event", typeof(char)); fmt.AddSubField("DateTime", typeof(DateTime), "dd-MMM-yy HH:mm:ss"); @@ -373,7 +375,5 @@ public TeradyneICT(IDictionary args) fmt.AddSubField("Type", typeof(string)); fmt.AddSubField("Message", typeof(string)); } - - } }