From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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

DNP3 Simplified Examples Using NI-Industrial Communications for DNP3 for LabVIEW

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.

    Hardware

  • Industrial Communication

Code and Documents

Attachment

Description

Overview

The examples show how to make a simple communication test with the NI DNP3 driver and an RT target, using both serial and TCP.

 

Description

The NI DNP3 drivers shipping examples are useful for application references or even as stand-alone programs. However, for a user just getting started with the DNP3 protocol and the NI Driver it can be a steep learning curve.

The attached code contains the following content:

  • DNP3 TCP.lvproj, This project implements a loopback example over TCP
    • Poll Event.vi, This VI runs on a host machine and polls an outstation for data
    • Generic Outstation.vi, This VI runs on an RT target and creates a simple TCP outstation
  • DNP3 Serial.lvproj, This project implements a loopback example over serial
    • Poll Event.vi, This VI runs on a host machine and polls an outstation for data
    • Generic Serial Outstation.vi, This VI runs on an RT target and implements loopback examples

NOTE: The NI DNP3 driver is not licensed to be deployed on Windows.

 

Requirements

Software

  • LabVIEW 2013 Real-Time (or compatible)
  • NI-Industrial Communications for DNP3 Software for LabVIEW 2.1 (or compatible)

Hardware

  • Windows Computer
  • Real time target. 

 

Steps to Implement or Execute Code

  1. Run the VI.
  2. Operate according to the instructions on respective VIs.

 

Additional Information or References

See more information about DNP3

 

 

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

 

 

Jesse Dennis
Engineer
INTP

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