Beispiel #1
0
 private void HW_OnSignatureUpdate(PhysLoggerHWSignature oldSignature, PhysLoggerHWSignature newSignature)
 {
     if (oldSignature == PhysLoggerHWSignature.Unknown)// new connection signature update
     {
         if (newSignature == PhysLoggerHWSignature.PhysLogger1_0)
         {
             HW = new PhysLogger1_0HW();
             Logger_1_0Attached();
         }
         else if (newSignature == PhysLoggerHWSignature.PhysLogger1_1)
         {
             HW = new PhysLogger1_1HW();
             Logger_1_1Attached();
         }
         else if (newSignature == PhysLoggerHWSignature.PhysLogger1_2)
         {
             HW = new PhysLogger1_2HW();
             Logger_1_2Attached();
         }
         OnHWSignatureUpdate.Invoke(HW, new EventArgs());
     }
     else
     {
         HW.SignatureReceived(newSignature);
     }
 }
Beispiel #2
0
 public void AttachVirtualLogger1_0()
 {
     HW = new PhysLogger1_0Virtual();
     Logger_1_0Attached();
     OnHWSignatureUpdate.Invoke(HW, new EventArgs());
 }