LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP virtual port

Solved!
Go to solution

Hello!

I have to write a software that sends ascii frames in UDP on an ethernet port. I made my software but I would like to validate that it works. Is it possible to create a virtual port to send the data and check that they are consistent?
Thanks in advance.

0 Kudos
Message 1 of 4
(154 Views)

There is no such thing as a vrtual UDP port, AFAIK.

You may send data to a real UDP port on your computer (127.0.0.1) and check them.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 4
(142 Views)
Solution
Accepted by topic author vincent69

Yes, you would have to open an UDP listener on your machine. There are examples for this in the example library, check https://www.ni.com/docs/de-DE/bundle/labview-api-ref/page/functions/udp-read.html or https://forums.ni.com/t5/LabVIEW/UDP-Read-from-External-Device/td-p/3770402 or probably also https://forums.ni.com/t5/Example-Code/LabVIEW-UDP-Example-I-m-Done/ta-p/3514223

 

The UDP listener does not have to be running in labview or on the same machine either. For quick tests I like to drop them in PowerShell scripts, like the one here: https://stackoverflow.com/questions/12148666/send-and-receive-data-via-udp-in-powershell#12150202

 

Message 3 of 4
(122 Views)

thank you

with this information and powershark i have make the job !

0 Kudos
Message 4 of 4
(60 Views)