Requirements
Hardware
LabVIEW Real-Time controller with two Ethernet ports
o NI cRIO-9074 integrated controller
o PXI system with an NI PXI-8231/8232 Ethernet interface card
NI 9144 slave chassis
C Series I/O modules
Ethernet cables
Software
LabVIEW version 8.6 or later
LabVIEW version 8.6 Real-Time Module or later
NI-RIO version 3.0
NI Industrial Communications Software for EtherCAT Setting Up
the Hardware
This guide uses a cRIO-9074 as a LabVIEW Real-Time controller. To set up this hardware system:
1. Insert the C Series I/O modules into the appropriate chassis (CompactRIO local chassis and/or NI 9144 chassis).
2. Connect the cRIO-9074 Ethernet port 2 to the NI 9144 Ethernet port 1 using a standard Category 5 or better Ethernet cable. In this way, you can daisy-chain multiple NI 9144 chassis starting from this controller.
Note: Port 1 of the cRIO-9074 is on the bottom, while Port 1 of the NI 9144 is on the top.
3. Attach an external power supply to each chassis to power the hardware.
Configuring the Host Controller
1. Once you have connected the hardware, install the required hardware on the host computer.
2. Using an Ethernet cable, connect the cRIO-9074 Ethernet port 1 to the same network as your host PC.
3. Launch the Measurement & Automation Explorer from Start >> Programs >> NI >> Measurement & Automation. Double-click Remote Systems on the left side of the Configuration pane to discover the cRIO-9074 on the network, and then click the CompactRIO controller.
4. Change the name of the controller and select Obtain an IP address from a DHCP server in the IP Settings field. When you are finished, click Restart. (To use a static IP address, see the related links below.)
5. To install software on the real-time controller, expand cRIO-9074 under Remote Systems. Right-click the Software item and select Add/Remove Software.
6. Install the recommended software set on the CompactRIO controller—NI-RIO Software with Scan Engine and NI Industrial Communications Software for EtherCAT.
7. After the controller has rebooted, discover the CompactRIO controller again under Remote Systems. Click Advanced Ethernet Settings in the lower-right corner.
8. Highlight the cRIO-9074 Ethernet port 2 (non-primary MAC address). Select EtherCAT from the drop-down box under Mode and click OK.
Note: When Ethernet port 2 of the controller is in EtherCAT mode, you cannot use the port for Ethernet.
Network Configuration in LabVIEW
1. Launch LabVIEW 8.6 or later from Start >> Programs >> NI >> LabVIEW XX >> LabVIEW. Click New Project.
2. Right-click Project and select New >> Targets and Devices.
3. In the Add Targets and Devices dialog window, select Existing Targets or Devices and expand the Real-Time CompactRIO class to automatically discover controllers on the host PC subnet. Select cRIO-9074 and click OK.
4. In the LabVIEW Project window, right-click cRIO-9074 and select New >> Targets and Devices.
5. In the Add Target Platform and Device dialog window, select an existing target platform or device and expand the EtherCAT Master class to automatically discover the EtherCAT ports on the controller.
6. Select an available EtherCAT master port and click OK. A dialog window will pop up to scan for slave devices. The first option will automatically discover any slave devices connected to the controller.
7. When all slave devices are found, you can create a VI on the CompactRIO controller. The LabVIEW project lists each slave device and its I/O modules and the physical I/O on each module (called I/O variables). Using these I/O variables, you can read and write these physical I/O in a LabVIEW program. To use these I/O variables, click on the I/O variables and drag and drop them from the LabVIEW project into the VI.
Previous article:Negative Voltage Current Sensing Using a Precision Instrumentation Amplifier
Next article:Multi-cycle Fully Synchronous Frequency Measurement Technology Based on Single Chip Microcomputer
- Popular Resources
- Popular amplifiers
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- I would like to ask how you learn this tutorial on circuit design based on operational amplifiers and analog integrated circuits.
- Share the method of setting the serial port baud rate of MSP430
- [RISC-V MCU CH32V103 Review] - 3: USART - Why did all three serial port tools fail?
- Bluetooth Protocol Analysis_Basic Concepts
- What do RF engineers do all day?
- 【RVB2601 Creative Application Development】Work Submission
- [TI recommended course] #Switch-mode power converter compensation is simple and easy#
- [Silicon Labs BG22-EK4108A Bluetooth Development Review] 5. Automatically Create a Serial Printing Project
- [RVB2601 Creative Application Development] + Unboxing and Trial
- Causes and solutions for DSP chip cold soldering