Beispiel #1
0
 public void Register()
 {
     CorrectorConfigurations.Register(_corrector);
     GeneralConfigurations.Register(_general);
     SamplingConfigurations.Register(_sampling);
     SliceConfigurations.Register(_slice);
     MiscellaneousConfigurations.Register(_miscellaneous);
 }
Beispiel #2
0
 public static void Initialize(string deviceName, int channel, double samplingRateInMHz, long recordLengthInM,
                               double range)
 {
     if (_singleton != null)
     {
         throw new Exception("SamplingConfigs already init ");
     }
     _singleton = new SamplingConfigurations(deviceName, channel, samplingRateInMHz, recordLengthInM, range);
 }
Beispiel #3
0
 public static void Register(SamplingConfigurations samplingConfigurations)
 {
     if (_singleton == null)
     {
         _singleton = samplingConfigurations;
     }
     else
     {
         ConfigsHolder.CopyTo(samplingConfigurations, _singleton);
     }
 }