CRV_LAST_X Function

CRV_LAST_X (id)

Returns the x value for the last point in the curve with the specified id.

Parameters

id(DINT)

The curve ID.

Return Value

Returns the last X value of the curve as a REAL.

Remarks

If the specified curve id does not exist, the task will fault. An error will be logged in the Event Log and the user program running on the task will stop. Use the CRV_EXISTS function to programmatically check if the curve id exists.

 

See Also

CRV_FIRST_X Function | CRV_INTERP Functions | CRV_EXISTS Function | Standard Functions


Send comments on this topic.

Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion