Error -1074388985 Being Thrown On DeviceNet Open

Updated Aug 9, 2018

Reported In

Hardware

  • PCI-8532

Issue Details

My code is throwing error -1074388985 at DeviceNet open. This error states:

NI-Industrial Communications for DeviceNet:  (Hex 0xBFF62007) You attempted to set a configuration attribute while the object is running.  Solutions: Configure attributes prior to opening the object; Stop and restart communication as needed so that you can update configuration attributes.

Solution

It is possible that on a previous run of the code, the reference to the DeviceNet device was not properly closed so the object is still running. Restart the PC to fix this issue by ending all currently running processes.

To prevent this issue in the future, make sure the code properly closes all references that are opened. Also, do not end the code with the Abort button because this immediately ends the code in its current state and doesn't clean up open references.

WAS THIS ARTICLE HELPFUL?

Not Helpful