예제 #1
0
        public void Initialize()
        {
            _settings.Add(new TestDeviceSetting("HostNameSetting", "172.16.1.12"));

            Trace.TraceInformation("Creating driver instance");
            _driver = DeviceFactory.CreateAndStartDevice(
                typeof(Elve.Driver.RainforestEagle.RainforestEagleDriver),
                _configFiles,
                _settings,
                _rules,
                _logger);

            _stopwatch.Reset();
            _stopwatch.Start();
        }
예제 #2
0
        public void Initialize()
        {
            _settings.Add(new TestDeviceSetting("NetworkAddressSetting", "172.16.1.115"));
            _settings.Add(new TestDeviceSetting("NetworkPortNumberSetting", "1070"));

            Trace.TraceInformation("Creating driver instance");
            _driver = (Elve.Driver.BenqProjector.BenqProjectorDriver)DeviceFactory.CreateAndStartDevice(
                typeof(Elve.Driver.BenqProjector.BenqProjectorDriver),
                _configFiles,
                _settings,
                _rules,
                _logger);

            _stopwatch.Reset();
            _stopwatch.Start();

            for (var count = 20; !_driver.IsReady && count > 0; count--)
            {
                Thread.Sleep(1000);
            }
        }