How do you access the test results found in "ResultList" which are generated while in the main sequence? When I am back in the SequentialModel sequence I am unable to find the data that was just generated. Actually, I would like to access this information from within a subsequence call (PostUUT Callback). I have thought about the reference that is being used in other subsequence calls (TestReport Callback) but I cannot seem to change the inputs to PostUUT Callback (i.e. add the reference) futhermore if I were able to get the reference in there how would I decode it in LabVIEW?
Assuming that your test sequence is actually generating some results, when you return to the process model sequence the results can be found at Locals.ResultList[0].TS.SequenceCall.ResultList. If you need all of the test results in the PostUUT Callback you should be able to copy the MainSequenceResults container from the parameter list in either TestReport or LogToDatabase sequence and select Locals.ResultList[0] to pass to it when you specify the module.
Thanks Dennis, I got as far as pass the container by reference in the PostUUT Callback (basically by trial and error :-). Now I have a container, how do I decode or access the information within LabVIEW?
I posted this question to the TestStand List and Sacha sent me a vi that was really close to solving my problem. The key point I was missing was that within the Locals.ResultList[x].TS.SequenceCall.ResultList resided the UUT Result Container(s)! Not the data for each test run for the UUT. I was also missing the method of how to get at that container (via refnum) which is done by using 'GetObjectProperty' This method allowed me to get a refnum for the Locals.ResultList[x].TS.SequenceCall.ResultList in order to obtain the number of elements (where x is the last test number run). Then using 'ResultList[%d].TS.SequenceCall.ResultList[y]' from the Locals.ResultList refnum I was able to extract the actual data from each of the tests run (for example ResultList[%d].TS.S equenceCall.ResultList[0].TS.StepName) via the 'GetValString' method. Another point, if you are trying this from scratch, is that the first thing you must do is get the renum from the 'Caller' of the subsequence. I am posting a vi to help illustrate...pictures are worth a 1000 words 🙂
Well, yes, I call this VI from TestStand, and for collecting the ResultList info that it's important to present and to record in an external database. Find attached a subVI example. I suppose there are other interesting solutions/purposes, even more elegant -- but I found it very useful.