To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The example demonstrates how to list the available NI-XNET devices on a CompactRIO system.
Description
The example lists all available NI-XNET modules with the available interface (a module can have multiple interfaces/ports) in a tree control.
Since a XNET session has to specify which interface will be used, a program may want to check first which interface are present on CompactRIO.
For this to work the NI-XNET modules have to be discovered by the CompactRIO controller. For older CompactRIO platforms that may require to compile a blank bitfile first. Please see Additional Information or References for more information.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
Readme: NI-XNET 14.0
http://download.ni.com/support/softlib//embedded%20networks/NI-XNET/Driver/NI-XNET%2014.0/readme.htm
On older CompacRIO it is necessary to compile and deploy a blank FPGA bitfile to be able to use the NI-XNET module in Real-Time. If you use these older CompactRIOs you also need the LabVIEW FPGA Module to be able to compile the bitfile.
Modern CompactRIO have no need for that blank FPGA bitfile any more:
Knowledgebase: Do I Need to Compile a Blank Bitfile for NI-XNET, NI-Industrial Communications for CANopen or DeviceNet?
http://digital.ni.com/public.nsf/allkb/333860B4B66BA4BD86257E6100452593
**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.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.