NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Show limit test results as graph

Solved!
Go to solution

I have a sequence that is using a Numeric Limit Test to check if a friction value is within limits. If the value is not within limits, the UUT is cycled a number of times, then the Numeric Limit Test is run again. This continues looping until the value is within limits or the maximum number of loops is reached. My customer would like to see a plot of the friction values and the high&low limits for each iteration. I'm thinking I need to send the friction value, low limit, and high limit to a 2D array as a post-expression in the Numeric Limit Check, then show that array as a graph on the report. But, I don't know how to accomplish either of those tasks. I'm also open to other suggestion about how plot these results.

0 Kudos
Message 1 of 5
(2,681 Views)

Have you seen this example? Another option would be to do all of the formatting in a LabVIEW graph, then put an image of the graph in the report (which there is a  different example for).

 

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 2 of 5
(2,671 Views)

I've seen both of these examples, but I don't have array data in my LabVIEW module. LabVIEW is outputting a single friction value to Step.Result.Numeric and the TestStand Numeric Limit Test step is comparing this value against the limits. It seems like TestStand should be able to build an array as this step gets looped over, but perhaps I over estimate TestStand's capabilities.

 

I'm very new to TestStand and have not found the documentation or examples to be very useful, so any extra explanation you can provide with a link will be appreciated.

0 Kudos
Message 3 of 5
(2,658 Views)
Solution
Accepted by topic author JTebbe

You should be able to build an array using the loop index. See the attached example:

  1. Store the loop variable somewhere:
    !1.PNG
  2. In a post-expression, log the limits and a results to a 2D array based on the loop index:
    Locals.DatArray[0][locals.i] = Step.Limits.low,
    Locals.DatArray[1][locals.i] = Step.Result.Numeric,
    Locals.DatArray[2][locals.i] = Step.Limits.High,
  3. Use an Additional Results step to put the graph in your report

Another option would be use a Pass/Fail step and do all of the looping, limit checking, and array building in LabVIEW - then graph the array in the same way.

 

Definitely take the training if you're new. If you have a valid service contract, you can access the training here:

https://www.linkedin.com/in/trentweaver
Message 4 of 5
(2,645 Views)

Thanks. That worked just like I wanted.

 

I also added:

Locals.DatArray.Type.ArrayDimensions.SetBounds({0,0},{2,Locals.i}),

before your code because the number loops is configurable at runtime.

0 Kudos
Message 5 of 5
(2,595 Views)