Error 42 When Using the LabVIEW UDP API

Updated Sep 28, 2023

Reported In

Software

  • LabVIEW

Issue Details

I am trying to setup a UDP communication using LabVIEW native functions, whenever I run any of the shipped examples and try to connect to the remote UDP endpoint I get a generic error 42.How can I get rid of this error?

Error 42.png

Solution

The error 42 in LabVIEW is a generic error code that can be caused by many reasons normally related to LabVIEW and OS compatibility.

In the specific case of UDP functions this error can be solved by forcing the functions to use an specific port by pointing to its IP address as shown in the image below: 

UDP Address.png