Example Code

Purge Certain Time Ranges from Citadel Database Using DSC

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

Code and Documents

Attachment

Overview

This example demonstrates how to remove data outside a specific timeframe from a historical database.

 

Description

The need to purge data from certain time ranges of a citadel database can be useful if you want to force data to only be in the data base in a specific range.  This VI reads a certain trace from a database and removes all historical data, that has no timestamp between Start and End timestamp.

Requirements

 Software

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

 Hardware

  • No hardware is necessary to use this example VI

 

Steps to Implement or Execute Code

  1. Download and open the attached file
  2. Run the program

 

Additional Information or References

 

Clean up Citadel Database to specific timeframe LV2012 NIVerified.vi - Front Panel.png

 

Clean up Citadel Database to specific timeframe LV2012 NIVerified.vi - Block Diagram.png 

 

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**

Jared S.
Applications Engineering
National Instruments

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