Beispiel #1
0
        private static int GENERATION_LENGTH_MAX = (int)ACQUISITION_DEPTH_MAX * 3; //Don't generate more than this many samples of wave

        #region constructor / initializer

        public DummyScope(DummyInterface iface) : base()
        {
            this.hardwareInterface = iface;
            ChannelConfig          = new Dictionary <AnalogChannel, DummyScopeChannelConfig>()
            {
                { AnalogChannel.ChA, new DummyScopeChannelConfig()
                  {
                      amplitude     = 2,
                      noise         = 0,
                      coupling      = Coupling.DC,
                      dcOffset      = 0.0,
                      frequency     = 10e3,
                      phase         = 0,
                      dutyCycle     = 0.5f,
                      waveform      = AnalogWaveForm.TRIANGLE,
                      probeDivision = ProbeDivision.X1,
                  } },
                { AnalogChannel.ChB, new DummyScopeChannelConfig()
                  {
                      amplitude     = 1,
                      noise         = 0.015,
                      coupling      = Coupling.DC,
                      dcOffset      = 0.0,
                      frequency     = 10e3,
                      phase         = 0,
                      dutyCycle     = 0.5f,
                      waveform      = AnalogWaveForm.SINE,
                      probeDivision = ProbeDivision.X1,
                  } }
            };

            timeOrigin       = DateTime.Now;
            DataSourceScope  = new DataSources.DataSource(this);
            AcquisitionDepth = 16 * 1024;
        }
Beispiel #2
0
 public TestClass(DummyInterface dependency)
 {
     this.dependency = dependency;
 }