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

Motion control
Table of Contents

Advertisement

1 Configure Buffer
2 Write Buffer
3 Configure Breakpoint
© National Instruments Corporation

LabVIEW Code

3
1
2
4 Enable Breakpoint Output
5 Check Buffer
Figure 12-2. Buffered Position Breakpoint in LabVIEW

C/C++ Code

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)
{
// Resource variables
u8boardID = 1;// Board identification number
u8axis = NIMC_AXIS1;// Axis number
u8 buffer = 1;// Buffer number
// Modal error handling variables
u16 commandID;// The commandID of the function
u16 resourceID;// The resource ID
i32 errorCode;// Error code
u16 csr = 0;// Communication status
4
5
6 Clear Buffer
7 Motion Error Handler
examples
12-5
Chapter 12
Synchronization
6
7
folder on the
NI-Motion User Manual

Advertisement

Table of Contents
loading

Table of Contents