Real-Time Workshop User's Guide    

Custom Code Blocks


Introduction

This chapter discusses the Custom Code library, a collection of blocks that allow you to insert custom code into the generated source code files and/or functions associated with your model.

This chapter include the following topics:

The Custom Code library is part of the Real-Time Workshop library. You can access the Real-Time Workshop library via the Simulink Library Browser as shown in Figure 14-1. Alternatively, you can access the Real-Time Workshop library by typing the command

at the MATLAB command prompt.

Figure 14-1: Custom Code Library and its Sublibraries

This chapter discusses only the C Custom Code library and its sublibraries.

Note that, depending on which MathWorks products you have installed, your browser may show a different collection of libraries.

There are four other sublibraries in the Real-Time Workshop library:


 Running the Program Custom Code Library