取消
显示结果 
搜索替代 
您的意思是: 

Get IP address of a cRIO Programmatically

已解决!
转到解答

Hello guys,

 

I have a code running on a cRIO. I want to display the IP address of the cRIO in a VI. I tried with IP to String node. But it didn't work as it returned 0.0.0.0. Is there any other way through which I can display it?

 

Thanks,

Prasanna.

0 项奖励
1 条消息(共 3 条)
5,069 次查看
解答
接受人 PrasannaSSRK

Hello Prasanna,

 

Have you tried using the System Configuration VIs to get this information? I suggest using a Hardware Property Node to access this information.

I do not have access to a CompactRIO right now, but I presume something similar to the next image should work:

 

2018-09-30 13_58_33-Untitled 1 Block Diagram on Untitled Project 1_My Computer _.png

 

 

All the best,

2 条消息(共 3 条)
5,030 次查看

And alternative is to use the String to IP, with empty input, followed by an IP to String function. It's the String to IP function that defaults to the local IP address, if the input is left empty. This only works reliably if you have a single Ethernet interface, otherwise you need to put the String to IP into multiple mode by selecting the "Multiple Output" in the right click menu and putting the IP to String inside a For Loop.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
3 条消息(共 3 条)
5,016 次查看