Chapter 5Software Realization In C++
If C or C++ is to be the target language, it makes sense to do the simulation in one of those languages also. Most of the template for direct simulation in C++ is very similar to the Matlab template. Unlike Matlab, some external mathematical library function for approximate integration must be added if there is a continuous-time element of the simulation for the target system. The results must be written to a file since C++ does not have any equivalent to the Matlab “workspace” to leave the result in.
5.1 Simulation in C++
Two software implementations are presented for C++. They differ in how they handle task implementations and to what extent the state transition model is embedded in the base software or ...
Get Control Software for Mechanical Systems: Object-Oriented Design in a Real-Time World 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.