LabVIEW Time Sensitive Networking (TSN)

Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.
Highlighted

Installing Software and Hardware Setup for NI TSN Devices

This document covers software and hardware setup for a TSN enabled devices from National Instruments. The document is split into three sections based on a hardware family. 

 

TSN enabled cDAQ-9185, cDAQ-9189 and FieldDAQ

 

Software:

List of minimum required software for the host development PC in order to program cDAQ-9185 and cDAQ-9189:

- LabVIEW 2017 or later

- DAQmx 17.1 or later

- DAQmx 17.6 or later for FieldDAQ

 

During the installation please follow every installation prompt and restart your PC when requested. It is also very important that you install the software in the order listed above. Once you are done installing DAQmx driver your host PC is ready.

 

Hardware:
The best place to learn about TSN enabled cDAQ hardware is to reference cDAQ-9185/9189 User Manual. For 802.1as networking and network topology options reference Chapter 2 of the user manual. 

Once you're done with software and hardware setup the next best place to continue is to look over cDAQ TSN examples.

 

cRIO-9035 (Sync), cRIO-9039 (Sync), cRIO-904x, and cRIO-905x

 

Software:

The table below shows list of minimum required software for the host development PC per version of the TSN driver. Please follow the same order of installation as listed in the table. 

 

Min. Software Stack with the TSN 17.0 Driver
Min. Software Stack with the TSN 17.5 Driver
Min. Software Stack with the TSN 18.0 Driver Min. Software Stack with the TSN 18.1 Driver
LabVIEW 2017 LabVIEW 2017 SP1 LabVIEW 2018 LabVIEW 2018
LabVIEW Real-Time Module 2017 LabVIEW Real-Time Module 2017 LabVIEW Real-Time Module 2018 LabVIEW Real-Time Module 2018
LabVIEW FPGA Module 2017 LabVIEW FPGA Module 2017 SP1 LabVIEW FPGA Module 2018 LabVIEW FPGA Module 2018

CompactRIO Device Drivers May 2017 (17.0)

 CompactRIO Device Drivers December 2017 (17.6)

CompactRIO Device Drivers May 2018 (18.0)

CompactRIO Device Drivers June 2018 (18.1)

TSN 17.0

TSN 17.5 TSN 18.0 TSN 18.1

LabVIEW 2017 FPGA Xilinx Compilation Tool for Vivado 2015.4  (optional)

LabVIEW 2017 FPGA SP1 Xilinx Compilation Tool for Vivado 2015.4 (optional) LabVIEW 2018 FPGA Xilinx Compilation Tool for Vivado 2017.2 (optional) LabVIEW 2018 FPGA Xilinx Compilation Tool for Vivado 2017.2 (optional)

DAQmx 17.1*

DAQmx 17.6 is included with the CompactRIO Device Drivers 17.6 and later DAQmx is included with the CompactRIO Device Drivers DAQmx is included with the CompactRIO Device Drivers

 *Only needed if you need to control a TSN cDAQ from a cRIO (sync).

** 2018 Software stack is the minimum required software for cRIO-904x. 

 

During the installation please follow every installation prompt and restart your PC when requested.

 

Hardware: 

 

  • Connect one end of an ethernet cable into port 2 on the controller and another end into a normal DHCP switch or directly into the host PC ethernet port. Here we are just simply trying to make a connection between host pc and cRIO. Do same connection for each cRIO you wish to program. Now connect power supply to cRIOs and let them boot up (around 15 seconds)
  • On your PC, open NI-MAX and confirm all cRIOs are visible under Remote Systems tab, you should have similar view as the screenshot bellow. Here you can check IP addresses assigned to each cRIO.

crio remote systems.PNG

 

  • Under cRIO right click on the Software and select Add/Remove Software. In the installation window select NI CompactRIO <version> - <month, year> and click next. In the next window scroll down and check TSN Features box. This is all necessary software required for TSN. 
  • Select 'DAQmx' driver in the installation list If you are planning to control cDAQ chassis from the controller.

    RSS.PNG
  • Click the Next button to proceed with the installation. Once the installation completes, the controller is ready to be used. 

 

cRIO 9035/9(Sync) and cRIO 904x TSN Network Topology:

 

cRIO 9035/9(Sync) consists of two ethernet ports, ethernet port 1(in SW its refereed as eth0) and ethernet port 2 (in SW its refereed as eth1). Looking at the physical face-plate of a cRIO ethernet ports are labeled with number '1' and '2'. Only port 1 is TSN enabled and therefore this is the port that should be plugged into a TSN network. The beauty of TSN is "sharing a wire" and therefore it is not necessary to leave this port dedicated to only TSN, the same port can be used for other communications such as target-to-host communication, TCP/IP, UDP etc. The second ethernet port can be used for exactly same tasks except TSN. However many times its easier to use port 2 for host-target communication (code deployment) and leave port 1 for TSN and other network communications. Starting with cRIO 904x both ethernet ports support TSN.

Two TSN cRIOs can be directly connected together to achieve clock synchronization and enable deterministic data transfer between two cRIOs. Simple connect both cRIOs ethernet port 1 together using CAT5(or higher) ethernet cable. Use the secondary port for host to target communication. For simplicity image below does not show host to target connection. Use port 2 of each cRIO to connect cRIOs to host PC via ordinary network switch or connect cRIO directly into a computer. 

 Two cRIOs.PNG

Two cRIO (sync) connected directly to each other

 

In order to connected three or more cRIOs you will need TSN enabled switch such as Cisco IE 4000. For more information about obtaining Cisco switch click here. CISCO IE-4000-8GT4G-E switch allows connections of up to 16 TSN devices in a star topology as shown in the image below. For simplicity this image does not contain Ethernet port 2 connections to host PC. 

 

star_config.png

 

 

You can further expand your network adding additional TSN switches. Simply connect any TSN enabled port on both switches using another ethernet cable. 

 

Two Switches.PNG

 

 Industrial Controllers IC-3171, IC-3172 and IC-3173

 

Software:

The table below shows list of minimum required software for the host development PC per version of the TSN driver. Please follow the same order of installation as listed in the table.

 

Minimum Software Stack with the TSN 17.0 Driver
Minimum Software Stack with the TSN 17.5 Driver
Minimum Software Stack with the TSN 18.0 Driver Minimum Software Stack with the TSN 18.1 Driver
LabVIEW 2017 LabVIEW 2017 SP1 LabVIEW 2018 LabVIEW 2018
LabVIEW Real-Time Module 2017 LabVIEW Real-Time Module 2017 LabVIEW Real-Time Module 2018 LabVIEW Real-Time Module 2018
LabVIEW FPGA Module 2017 LabVIEW FPGA Module 2017 SP1 LabVIEW FPGA Module 2018 LabVIEW FPGA Module 2018

Industrial Controller Device Drivers 17.1.1

Industrial Controller Device Drivers 17.1.1 Industrial Controller Device Drivers 18.0 Industrial Controller Device Drivers 18.0

TSN 17.0

TSN 17.5 TSN 18.0 TSN 18.1

LabVIEW 2017 FPGA Xilinx Compilation Tool for Vivado 2015.4  (optional)

LabVIEW 2017 FPGA SP1 Xilinx Compilation Tool for Vivado 2015.4 (optional) LabVIEW 2018 FPGA Xilinx Compilation Tool for Vivado 2017.2 (optional) LabVIEW 2018 FPGA Xilinx Compilation Tool for Vivado 2017.2 (optional)

DAQmx 17.1*

DAQmx 17.6 DAQmx 18.0 DAQmx 18.1

CompactRIO 17.0**

CompactRIO 17.6 (DAQmx 17.6 is included with the CompactRIO Device Drivers 17.6 ) CompactRIO 18.0 (DAQmx 18.0 is included with the CompactRIO Device Drivers 18.0) CompactRIO 18.1 (DAQmx 18.1 is included with the CompactRIO Device Drivers 18.1)

  *Only needed if control of a TSN-enabled CompactDAQ is required
** Only needed if control of a TSN-enabled CompactRIO is required 

 

During the installation please follow every installation prompt and restart your PC when requested.

 

Hardware:

  • Connect primary ethernet port with host PC over ordinary ethernet switch or directly. *Primary ethernet switch is the one next to blue USB 3.0 ports. 
  • On your PC, open NI-MAX and confirm all ICs are visible under Remote Systems tab, you should have similar view as the screenshot bellow. Here you can check IP addresses assigned to the industrial controller. 

Remote Systems .PNG

 

  • Under IC right click on the Software and select Add/Remove Software. In the installation window select NI Industrial Controller <version> - <month year> and click next. 
  • Select 'DAQmx' driver If you are planning to control cDAQ chassis from the industrial controller.

IC Instalation .PNG

 

  • Click the Next button to proceed with the installation. Once the installation completes, the controller is ready to be used. 

 

Once installation completes industrial controller will reboot and your system is ready to be used. 

 

Industrial Controller TSN Network Topology:

Industrial controller contains 4 ethernet ports located on the top left corner of the IC faceplate. Any of these 4 ports can be used to connect to a TSN network. As a reminder, the port that you select for TSN does not need to remain dedicated to TSN network. TSN  "shares wire" and therefore you can continue using same port/wire for other tasks such as TCP/IP or UDP communications.
Network topology for Industrial Controller is same as for cRIO. That is, you can connect two TSN devices directly together using ethernet cable, if you need more than three devices you will need to use TSN enabled switch. Mix network of cRIOs and ICs might look something like this:

 

cRIO IC.PNG

You can also add TSN enabled cDAQ controllers into a TSN network. One instance of such network might look like this. 

 

cRIo IC cDAQ.PNG

 

 For more information about TSN network topology refer to Designing Distributed TSN Ethernet-Based Measurement Systems.

 

 

If you experience any problems during software installation or have general questions post them in comments below. 

 

 

0 Kudos
Message 1 of 27
(7,923 Views)
26 REPLIES 26

Re: Installing Software and Hardware Setup for a TSN System

The link to download the TSN toolkit points to the ftp host from NI. Can anyone tell me where i can find the toolkit?

 

Thanks in advance!

Marco

0 Kudos
Message 2 of 27
(7,668 Views)

Re: Installing Software and Hardware Setup for a TSN System

The toolkit installer is hosted on the ftp site.  I think the file is called LVTSNTOOLKITEAR.exe

0 Kudos
Message 3 of 27
(7,665 Views)

Re: Installing Software and Hardware Setup for a TSN System

Thanks for the quick reply!

Unfortunately I can not find itSmiley Frustrated. I looked around some directories but nothing seems to be something like the TSN toolkit installer.

 

Any ideas where i can find it?

0 Kudos
Message 4 of 27
(7,662 Views)

Re: Installing Software and Hardware Setup for a TSN System

It shows up for me.  May be a setting on your computer?

 

0 Kudos
Message 5 of 27
(7,659 Views)

Re: Installing Software and Hardware Setup for a TSN System

Thanks for the direct link, this works!

0 Kudos
Message 6 of 27
(7,657 Views)

Re: Installing Software and Hardware Setup for a TSN System

Bookmarking link wont work, please only follow the link in section 1 step 5 in my original post. 

0 Kudos
Message 7 of 27
(7,650 Views)

Re: Installing Software and Hardware Setup for a TSN System


@Miro_T wrote:

Bookmarking link wont work, please only follow the link in section 1 step 5 in my original post. 


Yes, the LINK in your original post is a password temporary file that no longer exists.  HOW DOES ONE DOWNLOAD THE TSN module for LV 18?

The link at the top of the post for TSN is "ftp://lvtsnftp:e4Cm2JuB9LKZqrpY@ftp.ni.com/NITSN1800.exe"

 

Please fix this link.

-Scott

 

0 Kudos
Message 8 of 27
(2,240 Views)

Re: Installing Software and Hardware Setup for a TSN System

Hi Scott,

 

You can click the TSN 18.0 or TSN 18.1 links in either of the software tables in the original post and it will start a download of the executable for installing the executable. Does the link not work for you?

Austin
Product Support Engineer
National Instruments
0 Kudos
Message 9 of 27
(2,230 Views)

Re: Installing Software and Hardware Setup for NI TSN Devices

Hello All,

 

I'm working on Automotive Ethernet, I'm new to TSN Networks, please someone help me guide me how can I start practically to learn TSN.

 

Thanks in advance.

0 Kudos
Message 10 of 27
(2,026 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.