/// <summary> /// read input /// </summary> public bool ReadInput(out byte[] outBuffer) { outBuffer = new byte[9]; const char numberOfBytes = (char)9; const char pipeNumber = (char)2; if (HardwareFound) { SeriosMK1Wrapper.Read(outBuffer, numberOfBytes, pipeNumber, DEVICE_STRING); } return(HardwareFound); }
/// <summary> /// Looks up hardware /// </summary> protected bool CheckHardwareAvailable() { byte[] outBuffer = new byte[10]; char numberOfBytes = (char)10; char pipeNumber = (char)3; SeriosMK1Wrapper.Read(outBuffer, numberOfBytes, pipeNumber, DEVICE_STRING); foreach (byte b in outBuffer) { if (b == 0) { return(false); } } return(true); }