Beispiel #1
0
 public LMInstrument(Detector det)
     : base()
 {
     id       = new DataSourceIdentifier(det.Id);
     lmstatus = new LMInstrStatus();
     file     = new NCDFile();
     file.Log = NC.App.Loggers.Logger(LMLoggers.AppSection.Collect);
     Init(null, null);
 }
Beispiel #2
0
 /// <summary>
 /// LMMM-specific contructor for live instrument uptake while doing discovery on a local network
 /// </summary>
 /// <param name="e">socket event struct</param>
 /// <param name="EndpointPort">the source port</param>
 public LMInstrument(SocketAsyncEventArgs e, int EndpointPort)
     : base()
 {
     lmstatus         = new LMInstrStatus();
     instrSocketEvent = e;
     port             = EndpointPort;
     id.DetectorId    = "new"; // always this special string, see IsNew
     id.SetSRType("LMMM");     // this constructor should only be called for LMMM ethernet enabled devices
     file     = new NCDFile();
     file.Log = NC.App.Loggers.Logger(LMLoggers.AppSection.Collect);
     Init(null, null);
 }