Example Code

Create Database to Extrapolate a Historical Trace with Built-in Functions

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

  • LabVIEW Database Connectivity Toolkit
  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates how to create a database, create a trace of 1000 points, display the data on a graph with a user specified time frame, and extrapolate the data if wanted.

 

Description

This example shows how to use LabVIEW Datalogging and Supervisory Control (DSC) Module create a database and display the data on a graph with a user specified time frame, and extrapolate the data if wanted. You can directly create a database or select a database in the network. Then choose different read trace type. The historical trace will display on the graph.

 

Requirements

  • LabVIEW 2012 (or compatible)
  • LabVIEW Datalogging and Supervisory Control Module

 

Steps to Implement or Execute Code

  1. Run the VI.
  2. Create Database or choose existing database.
  3. Choose trace option and create trace.
  4. Read Trace.

 

Additional Information or References

User Interface

125-1.PNG

VI Snippet

125.png

 

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

 

Applications Engineer
National Instruments

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