Example Code

DIAdem Curve Limit Testing

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • Diadem

Code and Documents

Attachment

 

Overview
This example shows how to script and display a limit test between two curves. This allows more complex limit testing such as windowed limits and displays them for inspection.
Description
Often it is useful to have more complex limit testing and display the results. For example rather than a fixed limit across the full range you may want a varying limit.

This example:

  1. Loads the crash data that ships with DIAdem.
  2. Calculates the resultant of the XYZ acceleration.
  3. Creates the channel to use as the maximum limit.
  4. Creates a channel which has no values inside the limits and matching values outside the values.
  5. A report is then loaded which has curves to show the limits, the data curve and then the curve of outside values.

All of this is automated using the included script.

 
Requirements

  • DIAdem 2012 (or compatible)


Steps to Implement or Execute Code

  1. Unzip the attached files.
  2. Open and run the script included. 

Additional Information or Reference

 **This document has been updated to meet the current required format for the NI Code Exchange.**

James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.