LK202-25-USB error when reading and writing with .NET
Posted: Wed Sep 29, 2010 4:15 am
Hi,
We are using a .NET class to read and write from/to a LK202-25-USB. We write every 25ms, and read (GPIs) every 500ms.
The .NET class throws the exception:
The exception is thrown at seemingly random intervals.
I know it's highly unlikely anyone knows why this is happening but we're sort of stuck as to where to go to find an answer.
Any comments appreciated.
Thanks
We are using a .NET class to read and write from/to a LK202-25-USB. We write every 25ms, and read (GPIs) every 500ms.
The .NET class throws the exception:
Code: Select all
Unhandled exception stack trace: at System.IO.--Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.--Error.WinIOError() at System.Threading.EventWaitHandle.Set() at System.IO.Ports.SerialStream.AsyncFSCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOverlapped) at System.Threading.-IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
I know it's highly unlikely anyone knows why this is happening but we're sort of stuck as to where to go to find an answer.
Any comments appreciated.
Thanks