摘要 |
A device may receive a state chart generated via a technical computing environment. The state chart may include a state block with a single section of textual code. The single section of textual code may include a time-based portion and an output portion. The device may initiate execution of the state chart, and may process, during the execution of the state chart, the time-based portion with a graphical engine of the technical computing environment to generate a time-based method. The device may process, during the execution of the state chart, the output portion with a textual engine of the technical computing environment to generate an output method. The device may provide the time-based method and the output method in output code, where the time-based method may be separate from the output method in the output code. |
主权项 |
1. A method, comprising:
receiving a state chart generated via a technical computing environment,
the state chart including at least one state block with a single section of textual code,
the single section of textual code including a time-based portion and an output portion, andthe receiving the state chart being performed by a device; initiating execution of the state chart,
the initiating the execution of the state chart being performed by the device; processing, during the execution of the state chart, the time-based portion with a graphical engine of the technical computing environment,
the processing the time-based portion being performed by the device; generating a time-based method based on the processing of the time-based portion,
the generating the time-based method being performed by the device, processing, during the execution of the state chart, the output portion with a textual engine of the technical computing environment,
the processing the output portion being performed by the device; generating an output method based on the processing of the output portion,
the generating the output method based on the processing the output portion being performed by the device; and providing the time-based method and the output method in output code,
the time-based method being separate from the output method in the output code, andthe providing being performed by the device. |