Example Code

Setting Begin and End Values for X-Scale in DIAdem 2D axis Using VB Script

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

Description

Find attached a general script that allows you to set begin and end values for the X-axis of a 2-D Axis in the REPORT panel of DIAdem.

You need to determine what the begin (XMin) and end (XMax) values are going to be.

How to Use

  1. Download the attached script: Set XMin and XMax.VBS
  2. Open DIAdem.
  3. Add a 2D axis in the REPORT panel.
  4. Load the script in the SCRIPT panel.
  5. Choose values for XMin and XMax.
  6. Run the script.
  7. Notice how the X-axis limit values are now set to XMin and XMax in the REPORT panel.

Related Links

 

Control report x axis length with script

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