Ramp Signal Function

Simulation VI and Function

Ramp Signal Function

Owning Palette: Signal Generation Functions

Installed With: Control Design and Simulation Module

Generates the point-by-point value of a ramp signal.

Details  Example

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs
 Place on the block diagram  Find on the Functions palette

Dialog Box Options

ParameterDescription
Polymorphic instanceSpecifies whether this function is Scalar or Vector. The default value is Scalar.
ParametersLists all the parameters associated with this function. Select a parameter from this list to configure the parameter. When you select a parameter, the parameter and its associated Parameter source control appear in the Parameter Information section of the configuration dialog box.
PreviewDisplays a graphical preview, if available, of the function output or configuration.
Parameter InformationContains the parameters you can configure for this function. You must select a parameter from the Parameters list to make that parameter and its associated Parameter source control visible in the Parameter Information section of the configuration dialog box.
Parameter sourceSpecifies whether you configure this parameter using the Configuration Dialog Box or a Terminal on the simulation diagram. The default value is Configuration Dialog Box. If you select Terminal, LabVIEW displays an input for that parameter on the simulation diagram, and you can wire values to that input to configure this function programmatically. If you select Configuration Dialog Box, LabVIEW removes that input from the simulation diagram. You then must set the value for this parameter inside the configuration dialog box.
initial outputSpecifies the y offset of the ramp signal from simulation initial time to start time. The default value is 0.
start timeSpecifies the simulation time, in seconds, of the start of the rising edge of the ramp signal. The default value is 0.
slopeSpecifies the slew rate of the ramp signal.

Block Diagram Inputs

ParameterDescription
initial outputSpecifies the y offset of the ramp signal from simulation initial time to start time. The default value is 0.
start timeSpecifies the simulation time, in seconds, of the start of the rising edge of the ramp signal. The default value is 0.
slopeSpecifies the slew rate of the ramp signal.

Block Diagram Outputs

ParameterDescription
outputReturns the value of the signal evaluated at the current simulation time. The default value is 1.

Ramp Signal Details

The following equations define the ramp signal.

wherem is the slope
t is the current simulation time
y is the output

A ramp signal begins at an initial value and changes over time according to the slope you specify. The current value depends on the current simulation time.

Feedthrough Behavior

All input/output pairs of this function have direct feedthrough behavior.

Example

Refer to the SimEx Ramp VI in the labview\examples\Control and Simulation\Simulation\Signal Generation directory for an example of using the Ramp Signal VI.

 Open example  Browse related examples