08-04-2023 11:49 AM
Hello.
I am having some difficulty getting pass/fail data from Test Stand's result list. I am using Test Stand 2017 (64 bit) with LabVIEW 2018 (64 bit) modules. I am using a slightly modified version of the parallel process model I inherited. JSON and ATML 5.0 Standard report models are used and the active configuration is "default for inline processing."
What I am attempting to do is use a subsequence (called "Sequence Cleanup") in the Cleanup section of MainSequence. In this subsequence, I am attempting to read through all the results from MainSequence to see if a failure or error occurred and, if so, display it to the operator. I have also set error processing to go to Cleanup should a run-time error occur.
When I use Watch View to monitor where I expect this data to show up, RunState.Root.Locals.ResultList[], this shows up as a valid but empty array, as if data is never in there.
As such, where do I find the results from MainSequence, if not in RunState.Root?
thanks!
adam
Solved! Go to Solution.
08-08-2023 08:58 AM
Any ideas here? I've scoured these forums and google for a solid week without finding any info on where the Result List is other than ReunState.Root.... a bit dead in the water...
thanks!
08-09-2023 05:16 AM
I have tried to reproduce what you are seeing
Looking at the Variables Pane you might see something like this
RunState.Root.Locals.REsultList is in fact empty, since it refers to the Processmodel Entrypoint, not to your sequence
Why don't you just pass a reference to Locals.Result donw to the SubSequence?
08-09-2023 11:03 AM
I thought I had tried passing on the locals.results list without success, but I'll have to try it again. Naturally, i now have equipment out for calibration so it'll take a couple days.
Question - my local variables on my main sequence do contain a few ResultList items in an array. When I drill down into these, they appear to be all the setup steps (turn on power supply, etc). Do the actual test results just get appended to this list once the main sequence is run?
thanks for your insight - learning why that array was empty is very helpful!
08-09-2023 11:04 AM
Image of local variables
08-14-2023 01:57 AM
@thosquanta wrote:
I thought I had tried passing on the locals.results list without success, but I'll have to try it again. Naturally, i now have equipment out for calibration so it'll take a couple days.
Question - my local variables on my main sequence do contain a few ResultList items in an array. When I drill down into these, they appear to be all the setup steps (turn on power supply, etc). Do the actual test results just get appended to this list once the main sequence is run?
thanks for your insight - learning why that array was empty is very helpful!
For each step in your sequence having been executed, the TestStand Engine adds / appends a ResultContainer to the ResultList array
08-16-2023 02:48 PM
Well, I've got the hardware back from calibration and have tried just passing Locals.ResultList from the main sequence. This seems to have sort of worked, although I had to pass by value and not by reference.
I am able to see the values update in Watch View, and it does indeed pass the result list from main along. to the cleanup sequence
However, I am for some reason getting an error when I try to look at the Status of each.
I am passing Locals.ResultList from my main seq into Parameters.PreviousReultList. I then iterate over this array, which appears to be working correctly. I have set up a local variable Locals.CurrentResult in my cleanup sequence to be the container for "Current Element" in the iterated array.
When i try to analyze the results, i get an error looking at Locals.CurrentResult.Status.
The reported error is:
Error executing 'If' step. Unknown variable or property name '(Locals.CurrentResult.Status)'.[Error Code: -17306]" |
08-17-2023 02:35 AM
There are some aspects, in your description I don't really understand.
Can you please confirm:
- "Sequence Cleanup" Parameters.Previous ResultList is an Array with Elements of Type Result
- "Sequence Cleanup" Parameters.Previous ResultList setup is set to check type
- "Sequence Cleanup" Locals.CurrentResult is of Type Result
Why do you have the #NoValidation Tag set here?
08-17-2023 10:18 AM
Parameters.Previous ResultList is indeed an array with elements of type result and has been set to check type. I think the #NoValidation was set in a previous attempt. It does not need to be there.
08-17-2023 10:20 AM
OH, and Locals.CurrentResult is the correct variable type: