04-03-2019 02:32 PM
I have cRIO 9036, I am trying to set it to "DHCP only" mode
From NI MAX
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
04-04-2019 03:35 PM
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/...
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.
05-20-2019 02:14 PM
Thank you. I haven't got a chance to try it yet. But will let you know when I do.