NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Scan useful information from TXT format teststand report

    I'm trying to get useful information from TestReport in Teststand. Below is the part of TXT Format test report.I want to get information like below. My question is what is a recommended way to "Scan" in LabWindows. For example, how to get the step name and pass/fail/skipped status from "1004:Verify V5RTN1 (J1-37) Gnd (J1-06) Continuity: Passed"?
Thanks!
Jacky
 

--what I want ----------------------------------------------------------------------------
step Name                                           Pass/Fail   Measurement Value
1004:Verify V5RTN1 (J1-37) Gnd (J1-06) Continuity   Pass        3.1513397693634
1005:Verify V5RTN2 (J1-28)                          Pass        3.8625755310059
3010 Verify Power Conditioning Flag                 Skipped
3020 Verify DUT passed ICT                          Skipped
 
 
---Test Report------------------------------------------------------------------------
Begin Sequence: MainSequence
(C:\DelphiTestSystem\Models\MT22\MT22_DV2Sample1.1.seq)
Declaration of change report path: Done
To be noted!!!!!!!:            Skipped
1000 Continuity Test:          Passed
     Module Time:              0.3317754
   Begin Sequence: 1000 Continuity Test
   (C:\DelphiTestSystem\Models\MT22\MT22_DV2Sample1.1.seq)
 
   1004:Verify V5RTN1 (J1-37) Gnd (J1-06) Continuity: Passed
        Measurement:              3.1513397693634
        Units:                    ohm
        Limits:
           Low:                   0.01
           High:                  10
        Comparison Type:          GELE (>= <=)
        Unit:                     ohm
   1005:Verify V5RTN2 (J1-28): Passed
        Measurement:              3.8625755310059
        Units:                    ohm
        Limits:
           Low:                   0.01
           High:                  10
        Comparison Type:          GELE (>= <=)
        Unit:                     ohm
   3010 Verify Power Conditioning Flag: Skipped
   3020 Verify DUT passed ICT:    Skipped

 
0 Kudos
Message 1 of 2
(2,534 Views)
In my opinion best would be to first read the whole file into a buffer (ReadFile). Now you can search for the correct lines. You could use the carriage return to determine where your line is that you want, or you could search for the "1004:" to get the start index of the text, and read until the carriage return from there. You can use the function FindPattern to search in strings.

Hope this helps.
0 Kudos
Message 2 of 2
(2,524 Views)