Example Code

Archived: Using LabVIEW to Read an EDS File from DeviceNet Devices

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.

    Driver

  • NI-Industrial Communications for DeviceNet

Code and Documents

Attachment

Description

Overview


This document has been archived and is no longer updated by National Instruments.

This article explains the method for reading DeviceNet EDS file components into LabVIEW instead of importing the EDS file into the project.

Introduction

The EDS file is a plain text file that can be read into LabVIEW and parsed using the Configuration File VIs that ships with LabVIEW. These VIs are found in the Functions Palette under Programming»File I/O»Config Files VIs.

Below is an example of reading in the EDS file:

 

 

In this example, you can read multiple keys and return these values for use in your downstream NI-Industrial Communications for DeviceNet code.

 

Additional Resources

 

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