Trajectory Control VIs

NI-Motion VI

Trajectory Control VIs

This VI group contains detailed descriptions of VIs used to set up and control motion trajectories on the NI motion controller. It includes VIs to load double-buffered trajectory parameters, read back instantaneous velocity, position and trajectory status, as well as VIs to configure blending, gearing, and other advanced trajectory features.

Double buffered parameters for axes and vector spaces include acceleration, deceleration, velocity, s-curve, operation mode, target position, and circular, helical, and spherical arc parameters. You can send these parameters to the controller at any time, but they do not take effect until you execute the next Start Motion or Blend Motion VI. This double buffering allows you to set up moves ahead of time, synchronizing them with a single Start Motion or Blend Motion call.

Other trajectory VIs allow you to configure the operation of trajectory generators and set status thresholds. These parameters include following error, blend factor, gear master, ratio and enable, position modulus, velocity threshold, torque limit, torque offset, and software limit positions. Unlike double-buffered parameters, if you change these parameters on the fly, they take effect immediately. Also in this category are VIs to reset position to zero or another specified value and to force a velocity override.

During a move, you can read the instantaneous values of position, velocity, following error, and DAC output (torque). There are also VIs to read the following trajectory status: move complete, profile complete, blend complete, motor off, following error trip, velocity threshold, and DAC limit status. These trajectory values and status are used for move sequencing, system coordination, and overall monitoring purposes.

Finally, NI-Motion offers a set of VIs to acquire time-sampled position and velocity data into a large onboard buffer and then later read it out for analysis and display. These VIs implement a digital oscilloscope that is useful during system set up, PID tuning, and general motion with data acquisition synchronization.

Click the icons for VI descriptions.

Load Target Position Load Vector Space Position Set Operation Mode Reset Position Load Velocity Load Acceleration/Deceleration Load Move Constraint Read Position Read Vector Space Position Read Velocity in RPM Read Velocity Read per Axis Status Check Blend Complete Status Check Move Complete Status Wait for Blend Complete Wait for Move Complete Arc VIs Gearing and Camming VIs Buffered Operations VIs Advanced Trajectory VIs Up to Owning Palette

Load Target Position Read Position
Load Vector Space Position Read Vector Space Position
Load Velocity Read Velocity
Load Acceleration/Deceleration Read Velocity in RPM
Set Operation Mode Check Blend Complete Status
Reset Position Check Move Complete Status
Load Move Constraint Wait for Blend Complete
Read per Axis Status Wait for Move Complete

Subpalettes

Arc VIs

Gearing and Camming VIs

Buffered Operations VIs

Advanced Trajectory VIs