Example Code

Perform Shunt Calibration of a Module from a EtherCAT Slave using 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

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates how shunt calibration is enabled/disabled on supported modules in a NI 9144 EtherCAT slave chassis.

 

Description

In order to enable shunt calibration, the Scan Engine must be set to Configuration mode. Then a property node for the module can be used to enable/disable this feature for each channel. The Scan Engine must then be set back into Active mode. This example simply contains a project with a cRIO-9074 and a NI 9144 containing a single NI 9235 module. The VI opens a reference to the module and sets the Scan Engine. Using a property node enables/disables the shunt calibration of the channel. The Scan Engine is then set to Active mode.

 

Requirements

 Software

  • LabVIEW Full Development System 2012 (or compatible)
  • LabVIEW Real-Time Module 2012 (or compatible)
  • NI-CompactRIO 12.0 (or compatible)
  • NI-Industrial Communications for EtherCAT 2.4 (or compatible)

 Hardware

  • NI Real-Time cRIO
  • NI EtherCAT Slave 9144
  • any C-Series Module with Shunt Calibration, in this example is the NI-9235 used

Steps to Implement or Execute Code

  1. Run the VI.
  2. (Optional) Observe measurements disabling the shunt calibration.

Additional Information or References

 

 Perform Shunt Calibration of a Modul from an EtherCAT Slave Module.vi - Front Panel.png

 

Perform Shunt Calibration of a Modul from an EtherCAT Slave Module.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.**

David C

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