|
void | CalcOutput (const double dT, const double *const adX) |
| Calculations of the output signals. More...
|
|
void | ReadParameter (std::string sTag, double *adVals, double dDefault, ISimObjectCreator *pCreator) |
| Utility function to read a parameter.
|
|
bool | ReadTwinParameters (std::string sTagA, double dDefaultA, std::string sTagB, double dDefaultB, double *adVals, ISimObjectCreator *pCreator) |
| Utility function to read a parameter with two possible representations or units.
|
|
virtual void | CalcOutput (const double dT, const double *const adX)=0 |
| Calculations of the output signals. More...
|
|
virtual const double * | Signal (const double dT, const double *const adX) |
| The output signal.
|
|
virtual const double * | SignalDot (const double dT, const double *const adX) |
| The derivative of the output signal.
|
|
- Author
- Karl-Johan Reite and Vegar Johansen
This is a ramp simObject. It has no input port, and has two output ports with a scalar or vector signal. One is the ramp signal, and the other is the signal's derivative. The initial value, the final value, the start time and the end time are decided by input parameters at run-time.
Simobject name for use in input file: Src/Ramp
- Parameters
Parameter | Default | Comment |
PortWidth | 1 | The number of elements in the signal. |
StartValue | 0 | The start value of the output port. This may either be a scalar, or a comma separated list referring to the different elements of the signal. |
StopValue | 1 | The stop value of the output port. This may either be a scalar, or a comma separated list referring to the different elements of the signal. |
StartTime | 1 | The time to start the step. This may either be a scalar, or a comma separated list referring to the different elements of the signal. |
StopTime | -1 | The time to stop the step. This may either be a scalar, or a comma separated list referring to the different elements of the signal. If this is negative, this is a true step function with unlimited duration. If it is larger than zero, it is a pulse function, which goes back to the StartValue after the StopTime. |