public M3ReaderLowLevel()
        {
            _reader = new CAEN.CAENRFIDReader();
#if CHATTY_READER
            Trace.Listeners.Add(new TextWriterTraceListener(CHATTY_OUTPUT_FILE));
#endif
        }
Exemple #2
0
 /// <exception cref="Exception">Thrown when interrogator initialization has failed</exception>
 public M3OrangeInterrogator()
 {
     _reader = new CAEN.CAENRFIDReader();
     _reader.CAENRFIDEvent += new com.caen.RFIDLibrary.CAENRFIDEventHandler(HandleRFIDEvent);
     _reader.Connect(CAEN.CAENRFIDPort.CAENRFID_RS232, "MOC1");
     System.Threading.Thread.Sleep(500);
     _source      = _reader.GetSources()[0];
     _readerReady = true;
 }
 public void Dispose()
 {
     if (_readerReady)
     {
         _reader.Disconnect();
         _source = null;
         _reader.Dispose();
         _reader = null;
     }
 }