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, and the 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, and the providing being performed by the device.