Table Of Contents

Graph IDEInspector Editors ► Program

The Program inspector editor is where programs are entered and applied. Programming is described in the Programming section. This section simply describes how to apply the program.

Execute Editor

Program source code is entered and executed as follows.

Table

Source Code : A Table that shows and edits the program source code. The table cells are program lines, normally statements. The Programming section gives examples of source code. Once entered then you must at least Apply it or your entry is lost. For the most part, you should type source code in a separate text editor, copy it and paste it into the Source Code table as the table is not a full IDE.

Execute : Selecting the Execute button will parse and execute the source code. As a side effect, it will also apply (save) the source code.

Apply : Selecting the Apply button will save the source code but will not parse or execute it.

Information : Shows the number of times the program was executed. The information text appears between the Execute and Apply buttons.

Parameters

Execute During Animation : Turn this switch on if the source code needs to be executed during Graphic View animation. Most likely you should always turn this on.

Period : Defines the minimum period that the source code is executed during animation. A value of zero (default) means to execute the program on every animation step. Normally zero should be good enough since graphics will probably animate with a single period.

Output Editor

Output of the program is shown in the Output editor.

Table

Standard Output : The result of fprintf(stdout, ) function is shown here. In fact, any output to the stdout stream is shown in this table. The stdout stream is only redirected to this table when the Execute button is clicked. During animation the output goes to the system console.

Standard Error : The result of fprintf(stderr, ) function is shown here. In fact, any output to the stderr stream is shown in this table. The stderr stream is only redirected to this table when the Execute button is clicked. During animation the output goes to the system console.

Other messages, not associated with unix streams, may appear in either the output or error tables. Windows does not support stream redirection. If your program does not generate the intended results upon selecting the Execute button then consult these tables for explanations.




© Copyright 1993-2022 by VVimaging, Inc. (VVI); All Rights Reserved. Please email support@vvi.com with any comments you have concerning this documentation. See Legal for trademark and legal information.