Exemple #1
0
 private void sequencerViewControl1_Timer2CoefChanged(object sender, ByteEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetTimer2Coef(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #2
0
 private void commonViewControl1_ModulationShapingChanged(object sender, ByteEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetModulationShaping(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #3
0
 private void receiverViewControl1_BarkerTrackingThreshChanged(object sender, ByteEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetBarkerTrackingThresh(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #4
0
 private void receiverViewControl1_PreambleDetectorTolChanged(object sender, ByteEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetPreambleDetectorTol(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #5
0
 private void packetHandlerView1_SyncSizeChanged(object sender, ByteEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetSyncSize(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
 private void commonViewControl1_ModulationShapingChanged(object sender, ByteEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetModulationShaping(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
 private void receiverViewControl1_OokFixedThreshChanged(object sender, ByteEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetOokFixedThresh(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
 private void packetHandlerView1_SyncTolChanged(object sender, ByteEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetSyncTol(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemple #9
0
 private void loRaViewControl1_SpreadingFactorChanged(object sender, ByteEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetSpreadingFactor(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }