Console: Reading HistoryThe Console page has a screen in the middle of it, and the screen shows commands and responses. If you run a Script, add or delete a wire, or restart the system, it will show up on the Console screen. The Console screen displays a text version of the all Script clicking and Wiring operations from the Script and Wires pages. The text version is equivalent to Script and Wires page operations, so one can either build systems from the Script and Wires pages or from the Console. Generally, it's easier to work from the Script and Wires pages. The Console is best used as a way of understanding and possibly remembering what has been done, and for running things that are harder or impossible to run from the Script and Wires pages. On power up of the system the Console is initially empty. If there is a startup Script for the system, the Console will still be empty. The Console displays what Scripts and wiring a user has performed. What has been done on startup is available in the startup Script. Command LinesIn a typical Console display, every other line is a command line, and every other line (the other lines) is a status line. The Console always begins with a command and ends with a status line, as every command has a status immediately after it. There are a number of possible commands from the Console. We won't cover them all here, as this section describes how to read what has been done by the Script and Wires screens. To learn the more details, see the Console learning and control sections. Command for Running a ScriptThe most common command is the
The command is running a Script which builds an Inverter. The double quoted text string immediately following "run_script(" is the Script name one sees in the Scripts list on the Scripts page. After the Script name, there are 3 parameters, each with a name, a colon, and a double quoted string. These are called named parameters. The 3 named parameters are the "id", "inputs", and "outputs" parameters. For each parameter, the value following the colon is the parameter value. This particular Whenever one clicks on and runs a Script on the Scripts page, a similar command line will result. Note that the parameters on the command line are the same as the parameter names in the dialog box one sees when one clicks on a Script. Wires CommandsEach time one creates or deletes a Wire on the Wires page, a wiring command appears on the Console. We'll add a wire connecting the Inverter we just created's output to its input (generally a bad idea).
Wires create a Before anything bad happens, we'll delete the wire we just created.
The Status LinesWe can't tell if the
Without more description, one might guess that the
Here one can see how a failing command looks. (We can't create two devices with the same "ID".) In general, every Restart CommandOne last thing of note is what happens when one clicks on the "Restart" button at the bottom of the Scripts page.
Clicking on the "Restart" button runs the |