09-25-2024 07:20 AM - edited 09-25-2024 07:21 AM
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.
Solved! Go to Solution.
09-25-2024 07:30 AM
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.
09-25-2024 08:37 AM
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
10-03-2024 11:48 PM
thank you
with this information and powershark i have make the job !