Package org.yamcs.studio.data.sim
Class SquareWaveform
Function to simulate a waveform containing a square wave.
-
Field Summary
Fields inherited from class org.yamcs.studio.data.sim.SimFunction
lastTime
-
Constructor Summary
ConstructorDescriptionCreates a square wave of 100 samples, with period of 1 second, wavelength of 100 samples, updating at 10 Hz.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.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. -
Method Summary
Methods inherited from class org.yamcs.studio.data.sim.SimFunction
createValues, getTimeBetweenSamples
-
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 secondswavelengthInSamples
- the wavelength measured in samplesupdateRateInSeconds
- 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 secondswavelengthInSamples
- the wavelength measured in samplesnSamples
- the number of samplesupdateRateInSeconds
- the update rate in seconds
-