08-19-2014 01:04 PM
We are controlling equipment using ENET/1000 devices. The controlling computer has a redundant computer in case the primary fails. We use iblck to protect the bus when the equipment is under active control and need to restore service quickly if the computer fails. We have confirmed that the ENET/1000 does retain the lock after a failure however have not tested the duration of the timeout. How long does an ENET/1000 maintain a lock after it looses connection to the requesting thread and can this timeout be managed in any way?
08-19-2014 03:29 PM
08-20-2014 12:21 PM
Hi Tom-NG,
It sounds like your ENET/1000 and iblck are not cutting the lock after your computer crashes. The best way to approach this seems to be to use some error handling that enables iblck to cut the connection when the computer crashes, rather than hoping it will cut the lock when the computer crashes. Is there a way to tell whether the computer has crashed or not, and then control iblck from that?
08-20-2014 01:22 PM
08-21-2014 01:38 PM - edited 08-21-2014 01:38 PM
Hi Tom-NG,
Unfortunately I can't find any information about when it releases iblck. According to this KnowledgeBase article ( http://digital.ni.com/public.nsf/allkb/52C6008A5BE5C33686256FF2006FB00F ). the only way to release it is from the machine that originally started the lock, and I wouldn't expect that the machine crashing would necessarily break the lock. This seems like a problem inherent to the protocol that won't have a good answer, other than using a different protocol.
08-21-2014 02:10 PM