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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.