LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract test result from testStand for Labview

Solved!
Go to solution

We have a tester, which employ Labview Operator Interface to control TestStand sequence for each product. We need extract test result from TestStand to display the current testing unit fail details for the operator.

 

The Model file is BatchModel.seq, after  execution of “MainSequence Callback” sequence, the test result is stored in Locals.ResultList[0], the data type is TestStand “Result”, I try to build a cluster in Labview to match the data type in TestStand, but I can’t find any information about the structure of TestStand “Result”, I can use the TestStand “Watch View” to view the data in Locals.ResultList[0], it seems the structure is quite complicated.

 

Is there other simple way to extract the test result from TestStand?

0 Kudos
Message 1 of 8
(5,191 Views)

Hi Samuel,

 

The pass/fail result of a test is stored in the status string, so you could write a module which just takes this one string as input.  The location of this status varies with different step types; for example, in a single limit test, it is located at ResultList.[stepindex].Status, but for a multiple limit test it is located within each measurement: ResultList.[stepindex].measurement.[measurementnumber].Status . You can use the watch view to see where the status string is located in your steps, and pass this result to your LabVIEW module.  Note that while editing,TestStand will not recognize these structures and will indicate that there is an error, but once the sequence is executed, the structures will be created and the reference will work.  Hope this helps, and let me know if you have any other questions!

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 2 of 8
(5,158 Views)

I get the test result from TestStand for Labview now.

 

Because there are lots of TestStand files for our products, is is not practical to modify each sequence file. All those files share same Batch model file. I insert a Labview module in the BatchModel.seq just after "MainSequence Callback" Step, set the input parameters to "Locals.ResultList[0].TS.SequenceCall.ResultList" and

"Parameters.TestSocket.Index".

 

I'm still worry the data type "ResultInput" struct in my Labview file "Extract TestStand Result.vi", can this datatype suits all other version of TestStand?

 

Regards

Samuel

0 Kudos
Message 3 of 8
(5,134 Views)

H Samuel,

 

the ResultList is structured the same in at least version 3.0 and higher (probably the lower versions as well), and will probably not be modified in the future, so you should not have any problems with your module.  Let me know if you have any other questions!

Message Edited by Al B on 01-29-2009 09:16 AM
Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 4 of 8
(5,095 Views)
Solution
Accepted by topic author Samuel_Clipsal

Thanks.

So problem is solved.

0 Kudos
Message 5 of 8
(5,081 Views)
hello all, I am glad to watch the discussion about this issue. I also have this problem to solve. I want extract the detail test result from teststand when the test seq is executing, like status , steptype, limit, string and so on. But I can't get the reference of the array of resultlist or the context. Maybe I can get the solution from it.
0 Kudos
Message 6 of 8
(5,006 Views)

Hi Yanzhaoke,

 

You can access the resultlist container simply by using the local variable locals.resultlist as described in my above post.  Are you having problems with accessing this local variable?

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 7 of 8
(4,974 Views)

hello AI B,

 

  I had updated my name from yanzhaoke to Shifu.Zhao. Thanks for your focus to my question.

 I meet this problem to develop my UI based on teststand. I want to get the detail result when one step had been executed.

 

 As we know, when one step had been executed, the UIMessage_trace had been posted.

 So I built one UImessage handler to deal with this event. I want to get the test result by the object ,execution.sequence context .

 

  I want to go the test resultlist of main sequence by the variable , Execution.Sequence context.Locals.ResultList.

 

But there are no data which had been got in the message handler. So I want to get your idea if the way to get data from teststand is right.

If my method is not good, could you give one advice ?

0 Kudos
Message 8 of 8
(4,944 Views)