Chapter 6 Arc Moves
NI-Motion User Manual 6-4 ni.com
LabVIEW Code
Figure 6-5. Circular Arc Move in LabVIEW
C/C++ Code
The following example code is not necessarily complete, and may
notcompile if copied exactly. Refer to the examples folder on the
NI-Motion CD for files that are complete and compile as is.
// Main Function
void main(void)
{
u8 boardID;// Board identification number
u8 vectorSpace;// Vector space number
u16 csr = 0;// Communication status register
u16 axisStatus;// Axis status
u16 status;
u16 moveComplete;
//Variables for modal error handling
1 Configure Vector Space
2 Load Velocity
3 Load Acceleration/Deceleration
4 Load Acceleration/Deceleration
5 Load Circular Arc
6 Start Motion
7 Check Move Complete Status
8 Read per Axis Status
9 Read per Axis Status
10 Motion Error Handler
10
5 6
32
198
4
7