Digital Pulses (1 Hz) in a DO_WHILE Loop.vi
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
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/).
