LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rt Code 56: Can't set IP Setting of my Sbrio 9606 board from Labview code using RT Utilities Tool

Hi, 

 

I am facing problem in labview. I want to change the IP Settings of my Sbrio 9606 Board using Labview code. I am using RT Apply Target Network Setting (Static) to change the IP of the Sbrio Board. In addition, I am also using RT Get Target Information to retireve the information of the board. Then that retreived information (MAC address and IP Settings Cluster except IP Address) is given to the RT Apply Target Network Setting (Static). Finally, I manually assign the IP Address using Control to RT Apply Target Network Setting (Static). 

 

When I run the program, it give me following error from error out of RT Apply Target Network Setting (Static).

 

Error Code 56

NI_Real_Time Libraries.lvlib: FFC Discover Systems (all interfaces).vi<APPEND>

<b>complete call chain:</b>

NI_Real_Time Libraries.lvlib: SET TARGET CONFIG.vi

NI_Real_Time Libraries.lvlib: RT Apply Target Network Setting (Static).vi: ipSet.vi

 

I would really appreciate any help in this regard.

 

Regards,

 

0 Kudos
Message 1 of 4
(2,413 Views)

Hello,

 

Can you upload a screenshot of the code you are running?  Are you running this piece of code on your computer, or on the sbRIO?

 

Also, can you post the IP Address of the target before and after setting, as well as the IP Address for your computer?

Certified LabVIEW Architect
0 Kudos
Message 2 of 4
(2,382 Views)

Hello 

I have attached the VI and two screen shots. VI is developed for setting IP of SBRIO9606 board. Output of  VI which sets the IP of board is not working and give error 56. My main task is to change IP of the target(SBrio) to any value which I put in IP set control bar.

 

I am running this code on SBRIO and it's current IP is 192.168.100.102.

PC IP is 192.168.100.40.

 

Any help in this regard will be appreciated.

 

Thanks.

0 Kudos
Message 3 of 4
(2,362 Views)

It looks like you are not actually using the new IP Address anywhere in your code.  I modified your code to use this control, and have been able to verify that it functions properly.  Let me know if the attached code does not resolve the problem for you.

 

Capture.PNG

Certified LabVIEW Architect
0 Kudos
Message 4 of 4
(2,348 Views)