NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid logging loop info?

Solved!
Go to solution

Hello,

 

I'm using TestStand 2013.

 

Background

I have a number of tests which involve an electronic handshake with the UUT. Unfortunately, the handshake is quite time-sensitive, and I believe that the jitter in the test station (which runs Windows)  sometimes causes the test station to respond about 50ms too slowly to the UUT's message, and the handshake fails.

 

This is a reasonably rare event though, so the most sensible solution is to simply let the test system re-try the test a few times.

 

 

Attempted solution

To support re-tries, I enabled Looping:

TestStand Looping.png

 

 

Unfortunately, this adds multiple rows to the XML report to each test.  Even though I unchecked "Record Result of Each Iteration", TestStand still logs the following:

 

TestStand Looping Report.png

 

 

Questions

  • Is there a way to suppress the unwanted items from the report?
  • Is there a more elegant way to support re-trying tests (without adding noise to the test report)?

 

Thanks!

Certified LabVIEW Developer
0 Kudos
Message 1 of 7
(7,037 Views)

Hi JKSH,

 

To disable logging the results from looping, refer to the Properties window of the step and in the Run Options Tab, select "Disable" in the 'Result Recording Option' drop-down menu.

 

Looping works for what you're doing, but you may want to also look into Callbacks to see if that would be more elegant for your application. This White Paper will give more details on the different types of callbacks and how they are used.

 

https://www.ni.com/en/support/documentation/supplemental/07/using-callbacks-in-ni-teststand.html

 

Cheers,

 

Hannah Zimmerman

Applications Engineer

National Instruments

0 Kudos
Message 2 of 7
(6,998 Views)

@ZannahBanana wrote:

 

To disable logging the results from looping, refer to the Properties window of the step and in the Run Options Tab, select "Disable" in the 'Result Recording Option' drop-down menu.

 

 


Hi Hannah,

 

Thanks for your suggestion and link! The callbacks look quite powerful; I'll have to study these in detail.

 

Unfortunately, I can't disable the "Result Recording Option" because I still want to see the step itself in the report. I just want to suppress the parts in the blue box in my screenshot above, but I want to log the step name, status, and measurement.

 

For now, I've simply implemented the loop in a LabVIEW VI, so that TestStand itself isn't aware of the loop.

Certified LabVIEW Developer
0 Kudos
Message 3 of 7
(6,986 Views)

 

Hi JKSH,

 

I should have also added that whichever variables you'd like to see in the report can be added to the results list, as shown in this article:

https://www.ni.com/en/support/documentation/supplemental/08/teststand-report-generation-and-customiz...

 

Check out part 6: Adding Custom Data to the Report. That way you can add only the variables you'd like to see. Implementing in LabVIEW definitely works too, but I just wanted to make sure you had this information as well!

 

Hannah Zimmerman

Applications Engineering

National Instruments

0 Kudos
Message 4 of 7
(6,972 Views)

Hi Hannah,

 

The link you provided shows how to add extra items to the report, but I was looking for a way to remove loop info from the report (without removing the measurements). Thanks for researching, nonetheless!

Certified LabVIEW Developer
0 Kudos
Message 5 of 7
(6,929 Views)
Solution
Accepted by topic author JKSH

Hi JKSH,

 

You can modify Style Sheet (for me: tr5_horizontal.xsl) in Report Options.

I use standard XML comments:

<!-- Comment -->
 

 I spent comment out lines 884-909

 
<!--		<xsl:if test="ts:NumLoops">
			<tr>
				<td style="padding-left:{$gSingleSpaceValue}px;">Number of Loops:</td>
				<td colspan="{$gValueSpan};">
					<xsl:value-of select="ts:NumLoops/@value"/>
				</td>
			</tr>
			<tr>
				<td style="padding-left:{$gSingleSpaceValue}px;">Number of Passes:</td>
				<td colspan="{$gValueSpan};">
					<xsl:value-of select="ts:NumPassed/@value"/>
				</td>
			</tr>
			<tr>
				<td style="padding-left:{$gSingleSpaceValue}px;">Number of Failures:</td>
				<td colspan="{$gValueSpan};">
					<xsl:value-of select="ts:NumFailed/@value"/>
				</td>
			</tr>
			<tr>
				<td style="padding-left:{$gSingleSpaceValue}px;">Final Loop Index:</td>
				<td colspan="{$gValueSpan};">
					<xsl:value-of select="ts:EndingLoopIndex/@value"/>
				</td>
			</tr>
		</xsl:if> -->
 and lines 1406-1419
<!--		<xsl:if test="$endingLoopIndex">
			<tr>
				<td style="padding-left:15px;">
					<xsl:choose>
						<xsl:when test="@callerName">
							<xsl:value-of select="@callerName"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="@name"/>
						</xsl:otherwise>
					</xsl:choose> (Loop Indices)
				</td>
			</tr>
		</xsl:if> -->
Wtih this modified Style Sheet, i haven't loop info in my report.
 
Message 6 of 7
(6,920 Views)

Hi atchuuum,

 

So it looks like your idea is to still allow the log file to record the loop info, but stop it from getting displayed. That's quite clever; thanks for sharing!

Certified LabVIEW Developer
0 Kudos
Message 7 of 7
(6,910 Views)