C Program Screen | |
Constants:
TRAJECTORY_OFF 0
Axis Input Modes ADC_MODE 2 RESOLVER 3 USER_INPUT_MODE 4
DC_SERVO_MODE 2 BRUSHLESS_3PH_MODE 3
int n_Samples);
Analog I/O Functions: DAC(ch, value);
void Write3PH(int ch, float v,
double
angle_in_cycles);
double
angle_in_cycles);
double Time_sec();
int axisz, int axis a);
Digitial I/O Functions:
Thread Functions: void PauseThread(int thread); void ThreadDone();
int ResumeThread(int thread);
Math Functions:
double sqrt(double x);
|
![]() The C Program Screen allows the user to edit C language programs, compile, link, download, and run them within the KMotion board. C programs executing within the KMotion board have direct access to all the Motion, I/O, and other miscellaneous functions incorporated into KMotion System. One of the most powerful features of the KMotion system
is the ability for a user to compile and download native DSP programs and
have them run in real time. Native DSP code runs faster than
interpreted code. The TMS320C67x DSP that powers the KMotion
system has hardware support for both 32 bit and 64 bit floating point
math. Multiple threads (programs) may execute simultaneously (up to
7). The integrated C compiler allows with a single
pushbutton
Other features of the C Program Screen include a rich text editor with syntax highlighting, keyword drop down lists, function tips, unlimited undo/redo, and Find/Replace with regular expressions.
See list on left for available constants and functions. For a more details on the functions, see the KMotionDef.h header file. This file is normally included into a user program so that all accessible base functions and data structures are defined. See PC-DSP.h for common definitions between the PC host and KMotion DSP.
|