LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand Sequence Fail count from CVI operator interface

Is there a way to read the number of TestStand Sequence failures using CVI operator Interface? I am using TestStand 3.5, and LabWindows/CVI 8.1.

Thanks
0 Kudos
Message 1 of 2
(2,953 Views)
Hello,

I want to make sure that I understand exactly what you are looking to do.  Please correct me if I am wrong.  You want to call a step that passes the number of failed sequences (not steps) to a CVI function that will allow it to process this information further OR you are looking for a TestStand API call that you can use in CVI that returns the current number of failed sequences.

In either of the two above mentioned scenarios, there is not a straight forward way to do this.  In order to do this, you can follow the method I have outlined below to retrieve this information.  You can implement this in either CVI or in TestStand using the Flow Control steps.  If you have subsequences inside of any of the sequences in MainSequence, you will have to make the function recursively call itself as well with the current sequence as its argument.

FailCount = 0

// Loop through all of the results
For Each (Locals.ResultList AS Entry)
{
    // Check to see if the entry is a sequence and not a step

    IF (Entry.TS.StepType == "SequenceCall")
    {
        // Check if the status is failed

        IF (Entry.Status == "Failed")
        {
            // If it is failed, increment the FailCount

            FailCount++
        }
    }
}

Please let me know if I misunderstood your question, or if you need any clarification of what I have posted.  Also, please let me know if you would like additional information about implementing this method.


Regards,

Jonathan Cotton

Message Edited by Jonathan C on 10-03-2007 10:59 AM

0 Kudos
Message 2 of 2
(2,936 Views)