3.10. Design the Actual Control System in Real Time

In many applications, especially for the multiple variables control system, a state variable equation is a popular method to design and tune the control system in real time. It is very difficult to build a control system by using the variable equation method for a multiple variables system in the VC++ programming environment. The main reason for that is the complicated matrix operation involved in the state variable calculations. Using the interface between VC++ and Matlab, this problem can be easily solved.

The system block diagram for calling a Matlab function from VC++ to fulfill the complex matrix operations is shown in Figure 3-80. Any method mentioned here can be used to interface between ...

Get Applications Interface Programming Using Multiple Languages: A Windows® Programmer's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.