LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting tcp code into udp code

Dear community,

I need to write a program that communicates between my pc and a remote device that supports udp (as referred to in its manual). It is possible to establish a connection to this device via any hyperterminal programm (using telnet or "raw protocol") by inputting the IP adress of the device and its port. Attached you'll find my communication vi (LabVIEW 2017). I am able to establish a connection via tcp (the code in the bottom side of the panel) and this works fine. But i can not seem to be able to establish the same connection via udp (the code in the upper side of the panel). I get a timeout error in udp read. Where is the problem?

Thanks in advance!

0 Kudos
Message 1 of 4
(1,729 Views)

Hi labviewette,

 


@labviewette wrote:

I need to write a program that communicates between my pc and a remote device that supports udp (as referred to in its manual). It is possible to establish a connection to this device via any hyperterminal programm (using telnet or "raw protocol") by inputting the IP adress of the device and its port. 

I am able to establish a connection via tcp (the code in the bottom side of the panel) and this works fine. But i can not seem to be able to establish the same connection via udp


When the communication uses the Telnet protocol then it certainly needs a TCP connection.

Read Wikipedia on Telnet

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(1,724 Views)

Thank you for your quick reply GerdW.

Yes, a telnet connection uses tcp but does that mean that the device can not support both protocols?

Since the manual does not provide information on that it seems that I am going to need to contact the manufacturer.

0 Kudos
Message 3 of 4
(1,691 Views)

Hi labviewette,

 


@labviewette wrote:

Yes, a telnet connection uses tcp but does that mean that the device can not support both protocols?


Telnet is TCP-based. When this (still unnamed) device supports "telnet over UDP" then it operates outside the standard behaviour.

 


@labviewette wrote:

Since the manual does not provide information on that it seems that I am going to need to contact the manufacturer.


As you didn't name that device nor the manufacturer (and also not attached a manual) you need to contact the manufacturer on your own…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(1,685 Views)