|C Program Screen|
Axis Input Modes
Analog I/O Functions:
void Write3PH(int ch, float v,
int axisz, int axis a);
Print to Windows File Functions:
void PauseThread(int thread);
int ResumeThread(int thread);
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 to save, compile, link, download, and execute all within a fraction of a second. After programs have been developed and tested they may be flashed into memory and run stand alone with no host connection.
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.