public void ReadFrame(Byte channelID, ref UInt32 receiveBytes, Byte[] receiveBuffer) { //, out UInt32 camBytes, IntPtr CamToClient){ // hardcoded 1000ms polling delay for now if (myUART.isInitialized) { myUART.ReadFrame(channelID, ref receiveBytes, receiveBuffer); } else { throw new System.IO.IOException("Attempting to access closed DLL or COM port!"); } }