예제 #1
0
 /// <summary>
 /// Creates an initialized instance
 /// </summary>
 /// <param name="settings">Configuration</param>
 public PulseGenerator(PulseGeneratorSettings settings)
 {
     _signal    = settings.Signal;
     _avgPeriod = settings.AvgPeriod;
     _mode      = settings.Mode;
     Reset();
     return;
 }
예제 #2
0
 //Constructors
 /// <summary>
 /// Creates an initialized instance
 /// </summary>
 /// <param name="signal">Pulse signal value</param>
 /// <param name="avgPeriod">Pulse average leak</param>
 /// <param name="mode">Pulse timing mode</param>
 public PulseGenerator(double signal, double avgPeriod, PulseGeneratorSettings.TimingMode mode)
 {
     _signal    = signal;
     _avgPeriod = Math.Abs(avgPeriod);
     _mode      = mode;
     Reset();
     return;
 }