Initializing the Controller Programmatically
You can initialize the motion controller from within a LabVIEW, Visual Basic, or C/C++ program, in addition to initializing controllers in Measurement & Automation Explorer (MAX).
Refer to the following table for the steps you must take to initialize a controller programmatically and the functions and VIs you use for each step.
Step | Function and/or VI |
---|---|
|
Use the Clear Power Up Status VI or function. |
|
Use the Read Error Message VI or function. |
|
Use the Stop Motion VI or function and Enable Axes VIs or functions. In the Stop Motion VI or function, set Stop Type (Decel) set to Halt. In the Enable Axes VI or function, set Axis Bitmap to False for each axis you want to disable. |
|
Use the Configure Vector Space VI or function with the X Axis, Y Axis, and Z Axis inputs set to None. |
|
Use the Configure Axis Resources VI or function. |
|
Use the Axis & Resource Configuration VIs or functions. |
|
Use the appropriate VIs or functions on the Analog & Digital I/O palette. |
|
Use the Enable Axes VI or function. |
|
Use the Load Advanced Control Parameter VI or function and either Load Single PID Parameter VI or function or Load All PID Parameters VI or function. |
|
Use the Stop Motion VI or function with Stop Type (Decel) set to Halt stop. |
|
Use the VIs or functions on the Motion I/O palette to configure the capture and compare settings. |
|
Use the following palettes or VIs/functions to configure the optional settings: |