To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The attached code shows four different ways to read data from a 9144 EtherCAT Slave Chassis and conducts benchmark tests for relative speed. These examples build on the "Configure Scan.vi" included in EtherCAT Programmatic Slave and Module Discovery.
Description
There are four VIs included in the project that each implement a different method for reading from the 9144. Here is a summary table of the relative access speeds obtained on a 9074 chassis:
VI used | Access Method | Average Access Time |
---|---|---|
Programmatic Access by Individual Channel.vi | Programmatically reading each channel inside a for loop | 43.10 ms |
Static Access.vi | Individual Shared Variable nodes | 15.27 ms |
Programmatic Access by Entire Module.vi | Programmatically reading the entire module all at once | 10.98 ms |
Raw Data Access.vi | Raw Data Mode using RawData.Read Method | 4.85 ms |
Steps to Implement or Execute Code
Requirements
Software
Hardware
This add-on is provided as open-source software. If it does not meet your exact specification, you are encouraged to modify the source code to meet your needs. It is not officially supported by National Instruments.
National Instruments does not support this code or guarantee its quality in any way. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
Description-Separate-2
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.