Package org.yamcs.studio.data.sim
Class Sine
Function to simulate a signal shaped like a sine. The warning limits are set at 80% of the range and the alarm at 90%
the range. All values are going to have no alarm status, with the timestamp set at the moment the sample was
generated.
-
Field Summary
Fields inherited from class org.yamcs.studio.data.sim.SimFunction
lastTime
-
Constructor Summary
ConstructorDescriptionSine()
Creates a sine shaped signal between -5 and 5, updating every second with 10 samples every full sine cycle.Creates a sine shaped signal between min and max, updating every interval seconds with 10 samples every full sine cycle.Creates a sine shaped signal between min and max, updating every interval seconds with samplesPerCycles samples every full sine cycle. -
Method Summary
Methods inherited from class org.yamcs.studio.data.sim.SimFunction
createValues, getTimeBetweenSamples
-
Constructor Details
-
Sine
Creates a sine shaped signal between min and max, updating every interval seconds with samplesPerCycles samples every full sine cycle.- Parameters:
min
- minimum valuemax
- maximum valuesamplesPerCycle
- number of samples for each full cycle (each 2 Pi)secondsBetweenSamples
- interval between samples in seconds
-
Sine
Creates a sine shaped signal between min and max, updating every interval seconds with 10 samples every full sine cycle.- Parameters:
min
- minimum valuemax
- maximum valuesecondsBeetwenSamples
- interval between samples in seconds
-
Sine
public Sine()Creates a sine shaped signal between -5 and 5, updating every second with 10 samples every full sine cycle.
-