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

Digital Pulses (1 Hz) in a DO_WHILE Loop.vi

0 ratings | 0.00 out of 5
Print

Downloads

Filename: 2639.zip
Requirements: View

This FlexMotion example demonstrates the implementation of a DO_WHILE loop data structure in an onboard program. A move is started on a given axis and pulses are generated on a digital output line at a 1 Hz rate until the DO_WHILE loop exits when the move is complete.

REQUIRED HARDWARE:
One-axis motion system and CB-50 breakout for auxillary digital I/O connector.

INSTRUCTIONS:
1. Initialize the FlexMotion controller before running this VI.
2. Select the axis number and move length desired. Also select the digital output port and bit to generate the 1 Hz waveform on.
3. Run the VI to store the program. (The program will not be executed at this time.)
4. You can then run the program you have stored by calling the run_prog.flx function with the appropriate program number.

ADDITIONAL NOTES:
1. You should read the following items before writing FlexMotion onboard programs:
a. The Onboard Programs section of the FlexMotion Hardware User Manual (page 4-9 in the November 1998 edition).
b. The section about onboard variables in your FlexMotion Software Reference Manual (pages 4-11 and 4-12 in the November 1998 edition)
c. You will find the chapter of the FlexMotion Software Reference Manual concerning the Onboard Programming functions to be an invaluable reference resource (Chapter 12 of the November 1998 edition) along with the online help for the VI functions.
2. If you have multiple DO_WHILE loops in one onboard program, you may recycle the Loop Variable and Increment Variable numbers for the different loops in your program if they will not be needed by a previous or subsequent loop while the current loop executes and are not integrated into any other simultaneous aspect of this or another program.

Requirements


Filename: 2639.zip

Software Requirements


Application Software: LabVIEW Full Development System 5.0.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Motion Control
Driver: NI-Motion, NI-Motion 7.7

 
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/).