Ejemplo n.º 1
0
 /// <summary>
 ///     <inheritdoc />
 /// </summary>
 public void SetPulsePeriod(double period, PulsePeriod pulsePeriod)
 {
     try
     {
         ScpiDataExchanger.Request(":PULM:PER " + period + " " + pulsePeriod + ";");
     }
     catch (Exception exception)
     {
         throw new SignalGeneratorException(exception.Message);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     <inheritdoc />
 /// </summary>
 public void SetPulseModulationInternalPeriod(double pulsePeriod, PulsePeriod type)
 {
     try
     {
         E8257D.SetPulseModulationInternalPeriod(pulsePeriod, type);
     }
     catch (Exception exception)
     {
         throw new SignalGeneratorException(exception.Message);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 ///     <inheritdoc />
 /// </summary>
 public void SetPulsePeriod(double period, PulsePeriod pulsePeriod)
 {
     try
     {
         E8257D.SetPulsePeriod(period, pulsePeriod);
     }
     catch (Exception exception)
     {
         throw new SignalGeneratorException(exception.Message);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 ///     <inheritdoc />
 /// </summary>
 public void SetPulseModulationInternalPeriod(double pulsePeriod, PulsePeriod type)
 {
     try
     {
         ScpiDataExchanger.Request(":PULM:INT:PER " +
                                   Convert.ToString(pulsePeriod, CultureInfo.InvariantCulture) + " " + type +
                                   ";");
     }
     catch (Exception exception)
     {
         throw new SignalGeneratorException(exception.Message);
     }
 }
 /// <summary>
 ///     Sets the pulse generation period, according to the specified parameters
 /// </summary>
 /// <param name="period">The value of the pulse generation period</param>
 /// <param name="timeType">Dimension type</param>
 public void SetPulsePeriod(double period, PulsePeriod timeType)
 {
     try
     {
         _deviceExchanger.SendDataWithOutReturn(":PULM:PER " + period + " " + timeType + ";");
     }
     catch (Smb100AException smb100AException)
     {
         throw new Smb100AException("Failed to set pulse generation period to " + period + " " +
                                    timeType +
                                    " : " + smb100AException.Message);
     }
 }