From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to configure cRIO-9036 to DHCP only mode programmatically

I have cRIO 9036, I am trying to set it to "DHCP only" mode

 From NI MAX

  1. I am able to configure Ethernet Adapter eth0 to "DHCP only" from MAX. 
  2. Save
  3. Restart
  4. NI Max cannot find the cRIo until cRIO obtains IP address from a DHCP server. - This is fine

Now Programmatically (attached Code)

using nisysconfig.lvlib and property node, when trying to set the cRIO in "DHCP only" mode.

I get error -2147024809.

LabVIEW: (Hex 0x80070057) One or more arguments are invalid.
=========================
NI System Configuration: Invalid parameter.

 

If it can be done from NI MAX, then it should be possible programmatically. What am I missing? Please find the attached code. 

 

Please help.

 

Thanks,

Narmada

Download All
0 Kudos
Message 1 of 3
(1,820 Views)

Hi Narmada,


There are a few examples of this that may or may not be 100% relevant to your situation, but I thought I'd throw them past you to see if you've seen them before:

https://forums.ni.com/t5/Example-Programs/Configure-your-cRIO-programmatically-with-the-System/ta-p/...

 

https://forums.ni.com/t5/Example-Programs/Programmatically-Change-Network-Address-of-cDAQ-9188/ta-p/...

 

I believe the first one should work for cRIO devices such as your own, and may provide a good starting point for implementing this into your own code. 

0 Kudos
Message 2 of 3
(1,804 Views)

Thank you. I haven't got a chance to try it yet. But will let you know when I do.

0 Kudos
Message 3 of 3
(1,739 Views)