Custom Analyzer Rules

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Purpose

This example demonstrates how to implement custom TestStand Sequence Analyzer rules and analysis modules in LabVIEW, LabWindows/CVI, Microsoft Visual C#, and Microsoft Visual C++. The example directory contains the following example custom rules:

  • CheckNumberOfLocals—This rule verifies that the number of locals in each analyzed sequence does not exceed a maximum number. The maximum is a configurable rule setting that users edit with a standard built-in dialog box. This example demonstrates how to use rule settings to configure rules and how to use analysis transitions to perform bookkeeping tasks.
  • CheckStepNameLength—This rule verifies that the analyzed step names do not exceed a maximum length. The maximum length is a configurable rule setting that users edit using a custom dialog box. This example demonstrates how to use a rule configuration module to configure rules using a custom dialog box and how to store and retrieve rule configuration data.

Each example rule contains source code for analysis modules and rule configuration modules written in LabVIEW, LabWindows/CVI, Microsoft Visual C#, and Microsoft Visual C++.

Example File Location

This example does not use a separate sequence file. Create a new sequence file and follow the steps in How to Use This Example to import the files located in the <TestStand Public>\Examples\TestStand Debugging Features directory.

Highlighted Features

Major API

Prerequisites

You do not need any additional software to run the examples. You must have a supported version of LabVIEW, LabWindows/CVI, or Microsoft Visual Studio installed to modify and rebuild the modules.

How to Use This Example

This example implements several rules and analysis modules using LabVIEW, LabWindows/CVI, Visual C#, and Visual C++. You must import the corresponding rules files in the Configure Sequence Analyzer Available Rules dialog box to add the example rules to the sequence analyzer.

After you add the rule to the sequence analyzer, the analyzer adds the rule to all opened analyzer projects. The sequence analyzer uses the analysis module the next time you analyze a project.


See Also

Analyzer Options dialog box

Configure Sequence Analyzer Available Rules dialog box

Creating Custom Rules

Import Items from File dialog box

Toolbar Buttons and Shortcuts

WAS THIS ARTICLE HELPFUL?

Not Helpful