To download NI software, including the products shown below, visit ni.com/downloads.
Introduction
If you want to be able to use a secondary ethernet port (on a controller or a add-in card) to perform UDP transmission, then this basic example code will get you started in the right direction. The first thing you have to do is properly configure the secondary ethernet port for use. KnowledgeBase 4E0DGASK: Configuring the Dual Ethernet Ports on Real-Time Controllers has a step-by-step tutorial that can walk you through this process. After the secondary ethernet is properly configured, then just use the attached LabVIEW project (UDPServerFrom2ndEthernetPortLV2009f2.zip) to get a basic understanding on how to broadcast UDP packets only from this secondary ethernet port to another remote target. This code was programmed and saved in LabVIEW 2009f2 (with the f2 patch). I have posted pictures below with descriptions showing the two main VIs. If you need this functionality in an earlier version of LabVIEW, please just try to replicate the code from the pictures because I can't downgrade the code.
Steps to Complete
Additional Notes
Here is the VI that acts as the UDP Server on the PXI controller (or any other remote target) that broadcasts data using only the secondary controller:
Here is the VI that acts as the UDP Server on the cRIO (or any other remote target that you want to read the UDP data):
Description-Separate-2
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
hello Grant
can you illustrate to us the hall schematic by a small picture ( PC, pxi, cRIO, ethernet cables, ports ) and how they are related?
best regards