1. A non-transitory computer accessible memory medium storing program instructions executable by one or more processors to: create a state diagram, wherein in creating the state diagram the program instructions are executable by the one or more processors to display a plurality of state icons on a display device and display a plurality of connector elements interconnecting the state icons on the display device, wherein the state icons represent a plurality of states and wherein the connector elements represent transitions between the states; wherein the plurality of state icons includes a first state icon representing a first state, wherein in creating the state diagram the program instructions are further executable by the one or more processors to associate the first state icon with graphical source code, wherein the graphical source code comprises a plurality of interconnected nodes that visually indicate functionality of the graphical source code, wherein the plurality of interconnected nodes are not state icons, and wherein the graphical source code specifies one or more of: program code to be executed when the first state is active; or program code specifying one or more transition conditions for transitioning from the first state to a different state.