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.

Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

dnet lockup

Trying to make a robust dnet program using only explicit messaging.  Unplug device and communication can
only be re-established by unplugging dnet card  Small example of what i am starting with below. Unable
to determine source of error.
Thankyou for any suggestions  
 
0 Kudos
Message 1 of 3
(3,320 Views)
Hello,

When you say you can only re-establish communication by unplugging the DNet card, do you mean unplugging the DNet cable, or actually taking the PCI card out of the slot and then placing it back in?  If so, can the connection be re-established by resetting the card rather than completely unplugging it (Cntrl+Shift+right-click in MAX)?

Also, does the program hang when the device is unplugged, or just return errors?  Does the program finish and close the resource once the device is unplugged?  If not, it could be trying to open a reference that is already opened.  Do you get an error when trying to re-establish communication?

john m
Applications Engineer
0 Kudos
Message 2 of 3
(3,312 Views)
Hi Amazed,

Your VI has a problem: it tries to reconnect to the device in a while loop without closing the previous connection. What's more, the correct way to stop communication is (1) stop by Operate DeviceNet Interface (2) close all the handles. Please see the example Get Identity Attribute.

Regards,
Frank
0 Kudos
Message 3 of 3
(3,291 Views)