The Data Model (Intermediate)

1.1 Execution States
So far, all the Samples have been automatically set to "Execute on Change", except for some in which you had to press a Sequencer Play button. If you look at the Execute menu (it's the same in all windows), you see Execute on Change is the second choice. Here's the deal, though. Whenever you change the wiring in a net, as we just did, if Execute on Change had been on, it goes off. You have two choices now: turn it back on, or simply Execute Once to see the results of your rewiring experiment.

Here's the difference: Execute Once does just that, then goes back to a state in which DX is parked. You can make any changes to the net you like: rewire, open and edit module CDBs, etc. The images will not change until you choose Execute Once. (One notable exception: if you manipulate the Image window, with say Rotate, the Image will update right away, then go back into hibernation.)

If you put DX into Execute on Change mode, then all changes except adding or deleting modules or wires will force the program to re-execute immediately. This mode is handy when you have a program that is more or less running the way you want, but you want to experiment with different inputs (remember the Control Panels we played with earlier?) and you want DX to update using the new inputs as soon as you make them. To quit out of this mode, you can choose End Execution (third choice on the menu), or change the wiring or add a module, etc.

 

In Execute on Change mode, the Image window will attempt to track your interactive manipulations, such as Rotate. If you drag the object without letting go, and your hardware (CPU and graphics card) is fast enough, this will give you real-time interactivity.

All right, now you know about the Execute menu, and why you must choose Execute Once to see the new images after you rewired.

 

What color is the Execute menu when you are in:

  1. Execute on Change mode and not currently executing?
  2. End Execute mode?
  3. Currently executing a program (including updating an interaction with the Image window)?
  4. Error mode?

Answer