10-20-2017 08:59 AM
Hi
New to labview and looking for a simple example
Im looking for an example of establishing a udp connection to a port on the local pc
and then using the udp write text function to output data to the port
thanks
10-20-2017 09:02 AM - edited 10-20-2017 09:03 AM
Use the example finder. There are examples showing the very things you seek. LabVIEW ships with lots of examples and there is a wealth of information in them.
10-20-2017 09:03 AM
10-21-2017 09:20 AM
You do realize, I hope, the advantages and disadvantages of the various communication methods utilizing TCP/IP that LabVIEW supports. I've not used UDP, and (fortunately) have not (yet) encountered a Project for which it seemed most appropriate (I tend to use Network Streams for LabVIEW-to-LabVIEW communication).
Bob Schor
10-22-2017 05:11 AM
@Bob_Schor wrote:
You do realize, I hope, the advantages and disadvantages of the various communication methods utilizing TCP/IP that LabVIEW supports. I've not used UDP, and (fortunately) have not (yet) encountered a Project for which it seemed most appropriate (I tend to use Network Streams for LabVIEW-to-LabVIEW communication).
Bob Schor
What are the dis/advantages of the communication methods and why are you using network streams?
10-22-2017 09:45 AM
If you open LabVIEW Help and look up UDP in the Index, you can find a link to "Data Communications Home" that takes you to a page titled "Data Communication Methods in LabVIEW" (at least in LabVIEW 2016). Under Buffer Interfaces, Networked, it discusses both Network Streams and TCP. Under Variable Interfaces, it discusses UDP.
When I want to send data from Computer A to Computer B over the network, I want the following things:
Hence I use Network Streams. I would not consider UDP unless I had a multi-cast application where it didn't matter if the Client never got the data.
Bob Schor