Generates setpoint values over time in a control loop for ramp and soak types of control applications.


icon

Inputs/Outputs

  • c1dnclst.png setpoint profile

    setpoint profile specifies an array of time and setpoint value pairs that define the profile of the setpoint as a function of time.

  • cdbl.png time (s)

    time (s) specifies the time values in the setpoint profile. Specify the time (s) values in ascending order.

  • cdbl.png setpoint

    setpoint specifies the setpoint values in the setpoint profile.

  • cdbl.png dt (s)

    dt (s) specifies the loop-cycle time, or interval in seconds, at which this VI is called. If dt (s) is less than or equal to zero, this VI calculates the time since it was last called using an internal timer with 1 ms resolution. If dt (s) must be less than 1 ms, specify the value explicitly. The default is -1.

  • cbool.png reinitialize? (F)

    reinitialize? specifies whether to reinitialize the output to the setpoint profile at time t = 0.

  • idbl.png setpoint

    setpoint specifies the setpoint values in the setpoint profile.

  • ibool.png profile complete?

    profile complete? indicates whether the elapsed time is greater than or equal to the last defined time value in the setpoint profile.

  • idbl.png elapsed time (s)

    elapsed time (s) returns the elapsed time, in seconds, since the first call of the VI or since the reinitialization of the VI.

  • idbl.png dt out (s)

    dt out (s) returns the actual time interval in seconds. dt out (s) returns either the value of dt (s) or the computed interval if you set dt (s) to –1.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\control\PID\Simulation - Cascade and Feedforward Surge Tank Level.vi