Setting up a Hybrid Project
- Set up the modules of the project as described earlier in this chapter.
- Include the continuous time blocks you want.
- Click the Graphics tab of the project editor.
- Drag the continuous time blocks and modules you want to include in the hybrid project into the drawing area.
- Connect the CT blocks and the modules in the same way as elements in block diagrams.
You can change the layout of the components as described in Layout of Included Components.
The communication between CT blocks and between continuous time blocks and modules is formed by graphical connections like those in block diagrams. In the current version of ASCET, you can also connect modules in this way. The connecting lines between modules, however, have no influence on the communication between modules (which is always determined via the name-based binding mechanism described earlier). Connecting lines between modules are interpreted as comment lines and can be used for illustration. The color of comment lines is set in the ASCET option window, Appearance\Editors\Block Diagrams\Colors node.
All the tasks required for working with CT blocks are created automatically. No additional tasks can be created for the activation of CT blocks. The initialize_CT and terminate_CT tasks are created only once for the whole hybrid project. Additionally, a simulate task and an event task are created for each CT block in the model. These tasks are set up like any other task (see Basic Task Settings).
See also