Exemplo n.º 1
0
        public void StartInventory()
        {
            if (!SaveSettings())
            {
                return;
            }

            //if (btnHolographicsConfirm.Enabled)
            //{
            //    MessageBox.Show("Please confirm Holographics Settins before starting invenroty!", "Warning");
            //    return;
            //}
            //else
            //{
            //    _th = new Thread(SARThread);
            //    _th.IsBackground = true;
            //    _th.Start();
            //}


            _readerSettings.SetReaderConfiguration(_filepath);
            //_readerSettings.GetReaderConfigFromReader();

            //Send the messages
            //_readerSettings.GetROSpecFromReader();
            _currentSpecID = _readerSettings.AddROSpec(_filepath);
            //_readerSettings.GetROSpecFromReader();
            _readerSettings.Enable_ROSpec(_currentSpecID);
            _readerSettings.Start_ROSpec(_currentSpecID);
        }
Exemplo n.º 2
0
 public void startInventory(AntennaConfiguration antennaConfiguration, ROReportSpec rOReportSpec)
 {
     try
     {
         if (connected && !started)
         {
             _readerSettings.clearTagInfoQueue();
             _readerSettings.SetReaderConfiguration(_filepath, antennaConfiguration, rOReportSpec);
             _readerSettings.antennaConfiguration = antennaConfiguration;
             _readerSettings.rOReportSpec         = rOReportSpec;
             _currentSpecID = _readerSettings.AddROSpec(_filepath);
             _readerSettings.Enable_ROSpec(_currentSpecID);
             _readerSettings.Start_ROSpec(_currentSpecID);
             started = true;
             _readerSettings.TotalTagCount = 0;
             Console.WriteLine("status: started");
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e.ToString());
     }
 }