From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Data Logging and Monitoring Example for Distributed Systems

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

Description

Overview

This example works to proceed data logging and monitoring. 

 

Description

The Systems Engineering group at NI has developed a set of data logging and monitoring example LabVIEW code for test cells and similar uses. The example application is configuration-driven (point/click, drag/drop), and suitable for use with DAQmx, Fieldpoint, and custom (VI-based) I/O servers. It illustrates a method for building LabVIEW DSC-based client/server systems as well as various styles of client displays. 

To get started, read the information in the ReadMe files included in the docs folder of the project distribution.The example includes working code for acquiring, logging, and monitoring trend data using a distributed I/O system that uses any mix of the following components: 

  • National instruments DAQ boards (PCI/PXI and SCXI) configured using DAQmx Global Virtual Channels
  • National Instruments Fieldpoint (FP) or compact Fieldpoint (cFP) I/O configured using NI Fieldpoint
  • LabVIEW applications that deploy shared variables</li><li>Custom I/O servers for other I/O types

Requirements

Software

  • LabVIEW 8.2.1
  • LabVIEW DSC Module 8.2.1
  • The configuration management tool for LabVIEW
  • The I/O Server Simulator (for demonstration)
  • The LabVIEW State Diagram Toolkit is not required, but is recommended if you want to modify the client or server state models.

 

Additional Information or References

The example code includes the following features:

  • Server Configuration and control
  • Select data sources - browse network for DAQmx, Fieldpoint, and custom I/O server data Manage channel configuration - Import channel names and alarm limits from a spreadsheet Bind channels - associate physical I/O with user channel names (drag and drop) Manage alarm limits - interactive alarm limit editor Automatic DSC alarm engine configuration Automatic DSC (Citadel) database logging control
  • Shared variable deployment
  • Client Configuration
  • Subscribe to server Paged displays Import configuration from spreadsheet Edit configuration interactively View alarm limits Set log file size limits and location
  • Display formats
  • Plot (Trend) Map (current values overlaid on bitmap image) Tabular Alarm summary and acknowledgement
  • Local data logging to text file
  • This example supports aggregate data rates typical for LabVIEW DSC. It does not support waveform data.To learn more about the architecture used in this example, please see the document Theory of Operation.ppt, which is included in the docs folder of the source distribution.

 

 

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

Comments
BetaCommunityCo
Member
Member
on

Data Logging and Monitoring Example source code posted

The project source and documentation distribution has been posted on Developer Zone. You can get to it by following the link in the Source Code file attached to this page.