Code generation and simulation for graphical programming
First Claim
1. An apparatus comprising:
- one or more processors; and
one or more non-transitory computer-readable media including one or more sequences of instructions which, when executed by the one or more processors, causes;
receiving, by the one or more processors, data representing a plurality of graphical blocks, at least some of the plurality of graphical blocks defining respective computer functions, the plurality of graphical blocks comprising at least a first graphical block used solely in a first operating mode of a plurality of operating modes of a graphical block diagram and a second graphical block used solely in a second operating mode of the plurality of operating modes of the graphical block diagram; and
responsive to user input, generating, using the one or more processors, the graphical block diagram for display on an output screen, the graphical block diagram comprising at least some of the plurality of graphical blocks including the first graphical block and the second graphical block, the graphical blocks of the graphical block diagram being interconnected, and each of the first graphical block and the second graphical block including a respective input receiving mode output from a defined mode block of the plurality of graphical blocks, wherein;
the defined mode block is configured to produce the mode output indicating a selection of one of the multiple operating modes;
upon a condition that the mode output provided to the first graphical block and the second graphical block indicates selection of the first operating mode, executing, by the one or more processors, the graphical block diagram according to the first operating mode using the first graphical block and not the second graphical block; and
upon a condition that the mode output provided to the first graphical block and the second graphical block indicates selection of the second operating mode, executing, by the one or more processors, the graphical block diagram according to the second operating mode using the second graphical block and not the first graphical block.
1 Assignment
0 Petitions
Accused Products
Abstract
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.
-
Citations
20 Claims
-
1. An apparatus comprising:
-
one or more processors; and one or more non-transitory computer-readable media including one or more sequences of instructions which, when executed by the one or more processors, causes; receiving, by the one or more processors, data representing a plurality of graphical blocks, at least some of the plurality of graphical blocks defining respective computer functions, the plurality of graphical blocks comprising at least a first graphical block used solely in a first operating mode of a plurality of operating modes of a graphical block diagram and a second graphical block used solely in a second operating mode of the plurality of operating modes of the graphical block diagram; and responsive to user input, generating, using the one or more processors, the graphical block diagram for display on an output screen, the graphical block diagram comprising at least some of the plurality of graphical blocks including the first graphical block and the second graphical block, the graphical blocks of the graphical block diagram being interconnected, and each of the first graphical block and the second graphical block including a respective input receiving mode output from a defined mode block of the plurality of graphical blocks, wherein; the defined mode block is configured to produce the mode output indicating a selection of one of the multiple operating modes; upon a condition that the mode output provided to the first graphical block and the second graphical block indicates selection of the first operating mode, executing, by the one or more processors, the graphical block diagram according to the first operating mode using the first graphical block and not the second graphical block; and upon a condition that the mode output provided to the first graphical block and the second graphical block indicates selection of the second operating mode, executing, by the one or more processors, the graphical block diagram according to the second operating mode using the second graphical block and not the first graphical block. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method comprising:
-
receiving, at a computing device, data representing a graphical block diagram, the graphical block diagram comprising a plurality of graphical blocks, at least some of the plurality of graphical blocks defining respective computer functions, the plurality of graphical blocks being interconnected, the plurality of graphical blocks including at least a first graphical block used in each of a first operating mode of the graphical block diagram and a second operating mode of a plurality of operating modes of the graphical block diagram, the first graphical block responsive to a variable indicating a selection of one of the multiple operating modes; determining the variable; upon a condition that the variable indicates selection of the first operating mode, executing the graphical block diagram according to the first operating mode using the first graphical block producing a first output; and upon a condition that the variable indicates selection of the second operating mode, executing the graphical block diagram according to the second operating mode using the first graphical block producing a second output different from the first output. - View Dependent Claims (11, 12, 13, 14)
-
-
15. A method comprising:
-
receiving, at a computing device, data representing a graphical block diagram, the graphical block diagram comprising a plurality of graphical blocks, at least some of the plurality of graphical blocks defining respective computer functions, the plurality of graphical blocks being interconnected, the plurality of graphical blocks including at least a first graphical block used solely in a first operating mode of a plurality of operating modes of the graphical block diagram and a second graphical block used solely in a second operating mode of the plurality of operating modes of the graphical block diagram, each of the first graphical block and the second graphical block including a respective input receiving an input from a defined mode block of the graphical blocks, and the defined mode block configured to produce a mode output indicating a selection of one of the multiple operating modes; determining the mode output; upon a condition that the mode output provided to the first graphical block and the second graphical block indicates selection of the first operating mode, executing the graphical block diagram according to the first operating mode using the first graphical block and not the second graphical block; and upon a condition that the mode output provided to the first graphical block and the second graphical block indicates selection of the second operating mode, executing the graphical block diagram according to the second operating mode using the second graphical block and not the first graphical block. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification