Labview Code; C/C++ Code - National Instruments NI-Motion User Manual

Motion control
Table of Contents

Advertisement

Chapter 6
Arc Moves

LabVIEW Code

1 Configure Vector Space
2 Load Velocity
3 Load Acceleration/Deceleration
4 Load Acceleration/Deceleration

C/C++ Code

NI-Motion User Manual
4
5
1
2
3
5 Load Circular Arc
6 Start Motion
7 Check Move Complete Status
Figure 6-5. Circular Arc Move in LabVIEW
The following example code is not necessarily complete, and may
not compile if copied exactly. Refer to 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
6
7
8
9
examples
6-4
8 Read per Axis Status
9 Read per Axis Status
10 Motion Error Handler
folder on the
10
ni.com

Advertisement

Table of Contents
loading

Table of Contents