I'm working with a measurement system that is connected to my computer trough a com cable. Everything is fine but in a different time intervall under the same conditions the device stops sending codes... I dunno why but may you can help me. Here's my connection
i think "writetimeout" property may be the culprit. try observing failures, if their occurrence shows a pattern then it must be the writetimeout property
Sascha B122 reputationPosted Sep 8, 2010, 5:06 AM EDT
0
hmm ok. Thanks In the meantime I made a workaround. I catched the place where the failure sending code starts and put it in a try and catch area. The catch area is now filled with a disconnect and connect (reconnect) command. An it works! Sadly XD Dunno why but the device is after a "crash" or timeout not aviable until I reconnect it. So, solved :)
AnkurRank #1,353 · 1.2K reputationPosted Sep 8, 2010, 2:58 AM EDT
i think "writetimeout" property may be the culprit. try observing failures, if their occurrence shows a pattern then it must be the writetimeout property
thanks and regards
ankur malik
Sascha B122 reputationPosted Sep 8, 2010, 5:06 AM EDT
Thanks
In the meantime I made a workaround.
I catched the place where the failure sending code starts and put it in a try and catch area.
The catch area is now filled with a disconnect and connect (reconnect) command.
An it works! Sadly XD
Dunno why but the device is after a "crash" or timeout not aviable until I reconnect it.
So, solved :)