08-21-2014 05:08 AM
Hi Guys,
Ok, first post here, but I am a bit stuck. I am writing a model plugin to generate a custom HTML report (my requirement has a very specific layout for the report which is not at all compatible with the html reports generated from teststand normally). Anyway. I have generated all of the labview code I need to do the report in the format I need, but I am really struggling to actually get the information from teststand in a way that is easiest.
What I want to do is iterate over the result list from the main sequence in the UUT-Done sequence callback of the pluging sequence, which is stored in
Parameters.MainSequenceResult.TS.SequenceCall.ResultList according to the documentation, but how do I actually access this as an array that I can iterate over? All I have in my parameter list is a reference to parameters.MainSequenceResult, and for the life of me I cannot work out what to call this as to actually just get it in a format I can then use to iterate over in a "for each" loop to pull out those parameters.
I am on teststand 2014, and on a windows 7 machine.
Any help you could give would be really appreciated!
J
Solved! Go to Solution.
08-21-2014 11:08 AM
The top level result list is at: Parameters.MainSequenceResult.TS.SequenceCall.ResultList
To find this, I dragged Parameters.MainSequenceResult into the watch window at a breakpoint and expanded it until I found the result list.
The ResultList is a PropertyObject that is an array of containers, so methods like GetPropertyObjectByOffset and GetNumElements will work on it.
08-21-2014 11:23 AM
Hi James,
Casting it as a propertyObject indeed solved my problem!
Your help is very much appreciated!!
J