02-23-2009 11:10 AM
I have a LabVIEW VI that has an output cluster containing 10 strings and 10 booleans. In TestStand 4.1.1 I have inserted a Pass/Fail VI in my test sequence and linked that Pass/Fail VI to the LabVIEW VI. I was able to observe all of the strings and booleans listed independently in the parameter table under the module tab. I wanted to have each of these cluster elements listed in the report, so in the value fields I inserted Step.Result.ReportText, but the cluster elements did not appear in the report.
I then tried turning the cluster into a custom data type, which was successful. In TestStand at the under the LabVIEW adapter module tab I created a custom data type under Locals corresponding to the VI output cluster. If I go into the variables pane of TestStand, I can see the custom data type and each of the 10 strings and 10 booleans are present as individual variables. I tried right clicking on the cluster variables and selecting properties, and then going to advanced and then checking the box labeled PropFlags_IncludeInReport, but the variable values still do not appear in the report.
What I would like to do is to have each of the string values and boolean values appear in the test report. So what am I doing wrong?
Solved! Go to Solution.
02-24-2009 12:34 AM
Hi,
You can use the Additional Result.
Assign you Locals to the output of the VI, then you can insert an Additionl Result for that Step. See in the Step Settings.
Dont forget to insert your Local into the relevant field in the Additional Result.
http://forums.ni.com/ni/board/message?board.id=330&message.id=22838#M22838
The link may also help
Regards
Ray Farmer
02-24-2009 11:39 AM
Hi Ray,
You suggestion worked great. Now I have another question. When I am on the Properties tab, Additional Results, I see the table listing my cluster elements. At the right of the table I see selections for Condition, Include in Report, Is Measurement, and Is Limit. I am not sure how these apply to the cluster elements. For example, I entered Step.Result.PassFail for the conditions of two of the boolean elements in the cluster. Now when I run the test sequence, one of the booleans is false and the other is true, yet I see no difference in what is displayed in the report for these booleans. I guess I thought that each place in the report where a boolean is listed, it would say pass or fail, depending on the value of the boolean. Is there anywayto do that? It would be like treating each element of the cluster as a step in the test sequence. If this is possible, how would I be able to stop the test sequence as soon as any element in the cluster failed?