Exemple #1
0
 public void Register()
 {
     CorrectorConfigurations.Register(_corrector);
     GeneralConfigurations.Register(_general);
     SamplingConfigurations.Register(_sampling);
     SliceConfigurations.Register(_slice);
     MiscellaneousConfigurations.Register(_miscellaneous);
 }
Exemple #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);
 }
Exemple #3
0
 public static void Register(SamplingConfigurations samplingConfigurations)
 {
     if (_singleton == null)
     {
         _singleton = samplingConfigurations;
     }
     else
     {
         ConfigsHolder.CopyTo(samplingConfigurations, _singleton);
     }
 }