LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP read and Write cRio Error 54

Solved!
Go to solution

Hi,

 

I'm having an issue with running a vi on the cRio in startup. The UDP communication works fine when I run the RT program from the host PC (remote) but as soon I deploy it on the cRio and run it as startup the UDP open nodes return error 54. What is causing this problem? I'm using cRio 9034 with RT-linux and labview 2025. I have included the Host and RT VIs.

 

Thanks in advance

Best regards

ahmalk

0 Kudos
Message 1 of 7
(881 Views)

Error 54 in TCP Connection.vi in LabVIEW

The network address is ill-formed. Make sure the address is in a valid format.

 

Please attach your code so that we can advise.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 7
(836 Views)

Host.png

RT.png

  

0 Kudos
Message 3 of 7
(815 Views)
Solution
Accepted by topic author ahmalk71

Putting a delay before the UDP open nodes solved the problem. Apparently the network initiation in cRIO is not complete before the VI starts. Strange I must say 😕

0 Kudos
Message 4 of 7
(744 Views)

Hi ahmalk,

 

did you read this other thread?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(731 Views)

Hi GerdW,

 

I wish I did, it's not always that easy to use the right key words in your search 😕 After all I wouldn't have come up with that would been an issue.

 

Best regards

 

0 Kudos
Message 6 of 7
(725 Views)

Hi ahmalk,

 


@ahmalk71 wrote:

I wish I did, it's not always that easy ..


You also should implement some error handling.

This way your code could react on errors, like trying to re-open the UDP connection after an error occurs...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 7
(701 Views)