National Instruments NI-Motion Home Safety Product User Manual


 
Chapter 12 Synchronization
NI-Motion User Manual 12-4 ni.com
Buffered Breakpoint Algorithm
Figure 12-1 shows the basic algorithm for implementing buffered
breakpoints.
Figure 12-1. Buffered Breakpoint Algorithm
Configure the onboard buffer
Enable the breakpoint
Write buffer
Write the array of breakpoint
positions and the number of points
Write buffer (optional)
Write remaining breakpoint
positions to onboard buffer
Check the onboard buffer
(optional)
Check the number of
breakpoints consumed
Loop checking for buffered breakpoints usage
Load Breakpoint Array
Set the buffer type to breakpoint positions
Total Points is the total number of
breakpoint positions you want to load
Buffer Size is the size of the buffer you
want to create on the device.
Set Old Data Stop to TRUE if you do not
want old data to be used
Requested Interval = 0
Update breakpoint array
Clear buffer
Configure breakpoint
for buffered mode