custom ni teststand reports - bloomy€¦ · custom ni teststand reports 2 common tactics you can...

20
1

Upload: hatram

Post on 13-Jun-2018

263 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

1

Page 2: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Custom NI TestStand Reports

2

Common tactics you can use:

From ‘off-the-shelf easy’…

to 99% tailored solutions.

Page 3: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Introduction

• In business since 1991: Turnkey Test Systems,

• Select Alliance Partners

with National Instruments in

the New England area

3

• In business since 1991: Turnkey Test Systems,

Energy Storage Test Systems, Training, Consulting

•Your Speaker: Elaine Ramundo (CLA, CTA, CCVID, Senior Project Engineer, Principle

Trainer – TestStand startup & customization specialist)

Page 4: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

TestStand & Reports

• Four ‘flavors’ of reporting built in!

• ‘Ready to Run’ reports are a little… generic.

How can Beginners ensure that they get the most

4

How can Beginners ensure that they get the most

custom report possible, without the stress?

How can advanced users leverage their knowledge

of TestStand to create totally custom solutions?

Page 5: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Review of TS Modularity – Result List

Main Sequence

Step 0 Results:

Name

Status

Error

Locals. ResultList[0,1,…]

Report Generator

5

Step 1 Results:

Name

Status

Error

Report Generator

Page 6: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Review of TS Modularity – Data Scope

• Step Results have a

natural flow through

the system.

Process Model

With Variables

& Step Results

Your Test Code

With Variables

and Step Results

6

the system.

• Your custom data,

can flow through

too!

i.e. SequentialModel.seq

Your Database

Your Report

Page 7: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Report Generation Specifics

• Don’t forget the ‘easy settings available within the

environment.

7

environment.

• Even building complex or custom report paths are

possible, so long as the data is known to TS during

report name creation timeframe

Page 8: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Report Generation Process

• DLLs vs. Sequences

Most common modifications are

sequence-based to provide

maximum control.

8

maximum control.

Even if speed is essential, do ‘dry-

runs’ with sequences in order to

quickly debug and finalize

expected output.

Page 9: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Ways of Packaging A Report

• Built-in Styles

� TXT

� XML

• Custom Styles

� TXT (custom data/format)

� XML (custom data/format)

9

� XML

� HTML

� ATML

� XML (custom data/format)

� PDF

� XLS

� DOC

� Folders & Zips

Page 10: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Demo: Get your ‘Extra’ data in there!

• Leverage “Additional Reports” property

whenever possible to leverage TS’s ability to

auto format even your complex data

10

Page 11: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

TestStand API & Custom Reports

• Avoid/Limit editing the process model where

possible by leveraging the API’s ability to tweak

things on the fly.

11

things on the fly.

• You don’t have to be a TS guru to master a few

simple tricks

� PropertyObject.SetValString() with CreateIfMissing

flag

� Execution.AddExtraResult()

Page 12: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Demo: TestStand API

12

Page 13: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

TestStand Callbacks & Custom

Reports

• Modify Report Footer

• Modify Report Entry

• Modify Report Header

Change just pieces of

your report on the fly…

13

• Modify Report Header

• TestReportOr dig in, and change

the whole report!

Page 14: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

DEMO: TestStand Callbacks

14

Page 15: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Custom Report Templates in TestStand

Dig in for a full scale

customization when:

•You need report structure

that doesn’t match any

15

that doesn’t match any

existing template

•You need report

content/syntax that doesn’t

match any template

Page 16: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

DEMO: Custom Report Template

16

Page 17: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Deploying your Custom Report

• Keep it modular!

Keep it documented!

17

• Protect your

customization from

future changes

Page 18: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Summary

In TestStand you generally have the luxury of

starting a simple fix before implementing a

formalized solution…

18

formalized solution…

Save on stress and let the product do the work

when possible via ‘Additional Results’, ‘Callbacks’

and quick API calls!

Page 19: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

Questions?

19

Come by our booth on the convention floor

and see our battery test system!

Page 20: Custom NI TestStand Reports - Bloomy€¦ · Custom NI TestStand Reports 2 Common tactics you can use: From ‘off-the-shelf easy’… to 99% tailored solutions

20