Class SquareWaveform

java.lang.Object
org.yamcs.studio.data.sim.SimFunction<VDoubleArray>
org.yamcs.studio.data.sim.SquareWaveform

public class SquareWaveform extends SimFunction<VDoubleArray>
Function to simulate a waveform containing a square wave.
  • Constructor Details

    • SquareWaveform

      public SquareWaveform()
      Creates a square wave of 100 samples, with period of 1 second, wavelength of 100 samples, updating at 10 Hz.
    • SquareWaveform

      public SquareWaveform(Double periodInSeconds, Double wavelengthInSamples, Double updateRateInSeconds)
      Creates a square wave of 100 samples, with given period and given wavelength of 100 samples, updating at given rate.
      Parameters:
      periodInSeconds - the period measured in seconds
      wavelengthInSamples - the wavelength measured in samples
      updateRateInSeconds - the update rate in seconds
    • SquareWaveform

      public SquareWaveform(Double periodInSeconds, Double wavelengthInSamples, Double nSamples, Double updateRateInSeconds)
      Creates a square wave of 100 samples, with given period and given wavelength of given number of samples, updating at given rate.
      Parameters:
      periodInSeconds - the period measured in seconds
      wavelengthInSamples - the wavelength measured in samples
      nSamples - the number of samples
      updateRateInSeconds - the update rate in seconds