Velocity_Profile.vi

LabView Motion Control Velocity Profile

Velocity_Profile.vi

VI DESCRIPTION:

This VI provides control of a motor speed via a 'velocity profile'. It requires a sensor input that is used to determine current position relative to a target position. VI output (Motor Out) will

be a function of how far the current distance is from the target, as prescribed by the input profile array.

The motor value can be profiled to be progressively reduced as the target distance

is approached, like a P controller, but the motor value will not reduce to zero until the target is reached, ensuring the objective is reached.

When position is near the hi or lo limit, the output can be no higher than a 'slow'

value if (and only if) the position is continuing toward that limit - this reduces momentum prior to reaching a hard limit, which reduces positional overshoot. Output will become zero

upon reaching a limit, but still allow for a reverse motor command to move position away from the limit.

Use this only when the motor is NOT in a control loop (i.e. when under direct control from joystick). To limit motor travel when using a control loop, simply coerce the setpoint to limits.

Velocity_Profile.vi

Velocity_Profile.vi

cdbl

Position Sense

cdbl

Rate Sense

cdbl

Set Point

cbool

Reset

c2ddbl

Velocity Profile

    cdbl

cbool

Rate Feedback

cbool

corr

cdbl

coerce

idbl

Motor

ibool

arrived

idbl

Waveform Chart

ii32

gear

idbl

Rate

idbl

Accel

Velocity_Profile.vi

JK Latch.vi

JK Latch.vi

C:\Program Files (x86)\National Instruments\LabVIEW 2015\user.lib\836-Library\Logic\JK Latch.vi

"Velocity_Profile.vi History"

Current Revision: 117


Position in Hierarchy

Velocity_Profile.vi


Iconified Cluster Constants