
|
Linking MATLAB with Visual C++ or Visual Basic
|
| CEMLinker is the software library that can be used in developing science and engineering applications by MATLAB functionality. Calling MATLAB internal functions or including user-defined M-files in Visual C++/Visual Basic, the developers can easily configure the algorithm such as control; signal processing, communication, vibration and system modeling. CEMLinker provides the easy connection between MATLAB and your application program. |
|
|
| Features |
| |
 |
Provides easy connection between MATLAB and your application program developed using Visual C++ or Visual Basic |
| |
 |
Simply call MATLAB internal functions or include user-defined M-files in your program. |
| |
 |
Use all the functionality of MATLAB such as graph plots, multimedia applications, and hardware connections and so on. |
| |
 |
Reduces the development term for tenth of time when you are working with the science and engineering algorithm. |
|
| Applications |
| |
 |
Laboratory and Industry : The rapid development of commercial applications including control, signal processing, communication, vibration and so on. |
| |
 |
Education organization : The rapid development of education systems including science and engineering algorithm. |
|
| Environments |
| |
 |
OS : Windows 9x, Windows 2000, Windows XP |
| |
 |
Application programming software : Visual C++ 6.0, Visual Basic 6.0 or later |
|
|
| |
 |
Internal Functions of MATLAB |
|
| |
|
Provides the existing science and engineering algorithms in MATLAB. |
|
 |
Basic operation functions (Internal Toolbox) |
| |
Provides the basic computation and numerical operation functions for matrix as well asgraph plots, multimedia applications, hardware connections. (360 functions)
|
 |
Mathematical functions (Math Toolbox) |
| |
Provides the mathematical functions such as polynomial operations, matrix(80 functions)
|
 |
Control functions (Control Toolbox) |
| |
Provides the functions to analyze the system as applying various control theories and to design the controller. (100 functions)
|
 |
Signal processing functions (Signal Toolbox) |
| |
Provides the basic signal processing functions consists of FFT, various filter, and the sound and image signal processing for the development of the application program. (210 functions)
|
|
| |
 |
User-defined M-files |
|
| |
|
The user configures new functions in MATLAB (M file) using the the functions in MATLAB. This M-files can also be used in your applications. |
|
| |
|
CEMLinker provides 9 functions to use MATLAB functionality in Visual C++/Visual Basic.
|
| |
 |
To set the input data to MATLAB |
|
| |
|
Functions to set input vectors and/or matrices to MATLAB |
 |
CsetInputValue(LPCTSTR name, double* input, int row, int col); |
 |
CsetInputValueImag(LPCTSTR name, double* input_real,double* input_imag, int row, int col); |
 |
CsetInputValueChar(LPCTSTR name, LPCTSTR InputChar); |
|
| |
 |
To execute command of MATLAB |
|
| |
|
Function to execute the MATLAB internal functions or user-defined M-file |
 |
CMLinkerCall (LPCTSTR input); |
|
| |
 |
To check error message of MATLAB |
|
| |
|
Function to check the error message for debugging your program |
 |
CMLinkerError (); |
|
| |
 |
To get output result from MATLAB |
|
| |
|
Functions to get the output value for the execution result from MATLAB |
 |
CGetOutputType(LPCTSTR name, int* row, int* col, int* type); |
 |
CGetOutputValue(LPCTSTR name, double* output); |
 |
CGetOutputValueImag(LPCTSTR name, double* out_real, double* out_imag); |
 |
CGetOutputValueChar(LPCTSTR name,char* OutString); |
|
|
When you configure the application program for the control system analysis using Visual C++ or Visual Basic. CEMLinker provides easy connection between MATLAB and your program. The steps of application example are as follows;
|
| (1) Add library file in Visual C++ or Visual Basic project configuration window as follows. |
|
| (2) Edit your application program and use CEMLinker functions to analyze control systems using bode plot, and step response. |
|
| (3) You can use all MATLAB functionalities such as graph plot (2-D, 3-D, subplot), multimedia input/output (sound, image, video), and hardware connections (real-time DSP board simulation). Using these capabilities, you can optimize your program and decrease code-length and development time.
|
|