Ramp Pattern by Samples
- Updated2023-02-17
- 4 minute(s) read
Ramp Pattern by Samples
Generates a signal containing a ramp pattern of samples.

Inputs/Outputs

type
Type of ramp to generate.
Linear | 0 | Uses the linear type. |
Logarithmic | 1 | Uses the logarithmic type. |
Default value: Linear

start
First value of the ramp.
Default value: 0

end
Final value of the ramp.
Default value: 1

exclude end
A Boolean that determines whether to use the final value of the ramp to generate the ramp pattern.
True | Ignores the final value of the ramp when generating the ramp pattern. |
False | Uses the final value of the ramp when generating the ramp pattern. |
Default value: False

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

dt
Sampling rate in samples per second.
This input is available only if you configure this node to return a waveform.
Default value: 0.1

samples
Number of samples in the pattern.
samples must be greater than 0. Otherwise, this node returns an error.
Default value: 128

t0
Timestamp of the output signal.
This input is available only if you configure this node to return a waveform.

ramp pattern
Output ramp pattern.
This output can return a waveform or an array of double-precision, floating-point numbers.

error out
Error information.
The node produces this output according to standard error behavior.
Algorithm for Generating the Linear Ramp Pattern
Let the sequence X represent ramp pattern. If type is Linear, the node generates the pattern according to the following equation:
for i = 0, 1, 2, …, n - 1
where
- x 0 is start
- n is the number of samples
-
Algorithm for Generating the Logarithmic Ramp Pattern
Let the sequence X represent ramp pattern. If type is Logarithmic, the node generates the pattern according to the following equation:
for i = 0, 1, 2, …, n - 1
where
- x 0 is the start
- n is the number of samples
-
- start and end must be greater than 0.