1. A method for creating a graphical program on a display having portions that execute on a first target and a second target, the method comprising: creating a graphical program in response to user input, wherein the graphical program comprises a plurality of interconnected nodes that visually indicate functionality of the graphical program, wherein the graphical program includes a first graphical code portion with a first execution context specifying execution of the first graphical code portion on the first target; and establishing a second execution context for a second graphical code portion of the graphical program in response to user input, wherein the second execution context specifies the second target for execution of the second graphical code portion of the graphical program; wherein during execution of the graphical program, the first graphical code portion executes on the first target using the first execution context, and the second graphical code portion executes on the second target using the second execution context.