Patent attributes
A graphical block diagram can be used to execute multiple operating modes, such as a code generation or simulation mode. The graphical block diagram may include at least a first graphical block used solely in a first operating mode and a second graphical block used solely in a second operating mode. Each of the first and second graphical blocks includes a respective input receiving an input from a defined mode block. The defined mode block produces a mode output indicating a selection of one of the multiple operating modes. Other blocks of the graphical block diagram may be used in more than one operating mode. Depending on the value of the mode output, the graphical block diagram is interpreted according to the first or second operating mode. More than two operating modes are possible. The techniques described herein improve a model-based development platform.