LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visualizing Data from Ethernet in Labview

Please forgive my ignorance, but even after everything that I have read, I am still not able to come to decisive conclusion about Labview capabilities.

 

The question is this:

If I have a custom device which transmits data via Ethernet, can I stream that data into Labview somehow and display it real-time? Again the key here is that the data is coming from an Ethernet cable (as opposed to UART, USB, etc.). Perhaps there is an associated DAQ device that is built for this type of transmission? 

 

Thank you all in advance.

 

 

0 Kudos
Message 1 of 9
(5,846 Views)

Hi,

 

     Can you give us some more details of the device. Have a created any vi for this purpose?  

0 Kudos
Message 2 of 9
(5,842 Views)

Hi ce,

 

can I stream that data into Labview somehow and display it real-time?

Yes - as soon as you know which protocol(s) and port(s) are used, how the data is formatted and anything else you need to know for the communication with your device!

 

Perhaps there is an associated DAQ device that is built for this type of transmission? 

You need to use VISA, TCP and/or UDP functions, but no "DAQ"…

(There might apply other functions/libraries too, like ModBus/TCP.)

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 9
(5,836 Views)

Yes LabVEW can read data comming on a Ehternet port on your PC. 

All you need to know is the protocol that your device is using, and implement that in LabVIEW. 

 

Like for UART and USB, LabVIEW has function for reading Ethernet data.

0 Kudos
Message 4 of 9
(5,829 Views)

If you are looking for a data throughput measuring solution using LabVIEW...

 

LIke measuring bits/second, errors, retries, BERT, etc...

 

Good luck I have been searching for that for years.

========================
=== Engineer Ambiguously ===
========================
Message 5 of 9
(5,825 Views)

The device is a custom device that uses a Xilinx Zynq chip which interfaces to an Ethernet controller. So, again, data is being transmitted via an Ethernet Cable. 

 

The protocol is Ethernet. I'm not sure what the port of the computer should be (maybe the Ethernet port?) that's why I'm asking what NI capabilities exist to take the Ethernet cable coming from my custom Zynq device and somehow connect it into the computer and then create a VI which can take the Ethernet data and display it via graphs. 

0 Kudos
Message 6 of 9
(5,820 Views)

Hi,

 

      The protocol is not Ethernet but TCP. Is it running RTOS or Linux? Yes its possible to communicate with labview. Read the Protocol from the supplier manual and adapt accordingly in LABView.

Message 7 of 9
(5,809 Views)

The Zynq is running bare metal code. As far as the physical connection between the custom Zynq device and Labview, can the ethernet cable connect directly into the computer's ethernet port and Labview can communicate with the cable directly?

 

Yes, I'll definitely go and read the specifics of setting up the TCP connection, but I just wanted to know if it was possible.

0 Kudos
Message 8 of 9
(5,800 Views)

Hi ce,

 

The protocol is Ethernet.

That's the "hardware" layer (well, just above the hardware)…

 

You need to know the way your ZYNC is sending those data: TCP? UDP? ModBUS/TCP?

You need to know which port is used: you can have several "port numbers" for TCP and UDP on the very same "Ethernet" connection!

You need to know how the data is formatted: any kind of protocol description for TCP and UDP?

 

It seems to me you need to read some basics about LAN/Ethernet/TCP/UDP! Go to Wikipedia for reference…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 9 of 9
(5,798 Views)