Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Modulo Breakpoints

0 ratings | 0.00 out of 5
Print

Downloads

Filename: modulobp.zip
Requirements: View

This example executes a single axis move to a relative position. A move breakpoint is configured programmatically. The breakpoint type is a modulus breakpoint. The Modulus property specifies the repeat interval of the breakpoint.

When the Start method is called, two breakpoints are automatically enabled on the controller-one breakpoint in front of the current position and one breakpoint behind it. The breakpoint positions are computed to the closest breakpoint intervals to the current encoder position. When the encoder passes through one of those positions, the BreakpointProgress event is generated. When this event is generated, a label on the form is updated to display the number of breakpoints completed. The next set of modulus breakpoint positions are computed and enabled. The breakpoint operation terminates when the number of breakpoints completed is equal to the value of TotalPoints.

Note: Breakpoint functionality is available only on servo and closed-loop stepper axes that use encoder feedback resources.

Requirements


Filename: modulobp.zip

Software Requirements


Application Software: Measurement Studio Visual C++ Support 6.0
Toolkits and Add-Ons: Measurement Studio Motion Control Module
Language(s): Visual Basic

Hardware Requirements


Hardware Group: Motion Control
Driver: NI-Motion 8.0

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).