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

Motion control
Table of Contents

Advertisement

Chapter 6
Arc Moves

LabVIEW Code

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

C/C++ Code

NI-Motion User Manual
5
2
4
3
5 Load Spherical Arc
6 Start Motion
7 Check Move Complete Status
8 Read per Axis Status
Figure 6-9. Spherical 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
u16 commandID;// The commandID of the function
u16 resourceID;// The resource ID
i32 errorCode;// Error code
6
7
8
9
6-10
10
9 Read per Axis Status
10 Read per Axis Status
11 Motion Error Handler
folder on the
examples
11
ni.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NI-Motion and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents