[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.1.3 Global Settings

The following table lists global constants which are defined at compile time and can not be modified by the user. Where the user would want to use different values, some other well-defined mechanism usually exists (for instance, use command line options or environment variable to specify new values for the INPUT_FILE variable).

These values are used most often in error checking, and are referred to both in 2.4 Error Messages and in the descriptions of individual commands.

Name Value Description
INBUF_SIZE 400000 Maximum size (in bytes) of testlist file.
OUTBUF_SIZE 70000 Maximum size (in bytes) of outfile.
INPUT_FILE cogsys.in Default testlist file name.
OUTPUT_FILE cogsys.out Default outfile file name.
LABEL_FILE keepfile.tmp Default labels file name.
NUM_VARS 100 Number of Cogsys variables
Int Range +/- 2,147,483,647 Valid range of any Cogsys variable (and most other numerical parameters).
TMP_STR_LEN 256 Max length (in characters) of any Cogsys string.
MAX_IF_NEST 16 Maximum number of levels If statments may be nested.
COMMENT_MARKER ; Character to mark start of comment.
MAX_UNIQUE_PICS 1000 Maximum number of unique pictures that can be loaded into memory.
FAIRTIME 500000 Maximum time (in milliseconds) that can be specified in commands that have time arguments.
TIMEUP_RESP_CHAR '&' Character to use as response key in timed response commands that time out.
BREAKOUT_CHAR "@" Key to press to break out of testlist (on commands that support it).
DEFAULT_PIC_PATH /data/pics Default directory to look for pictures.
DEFUALT_PIC_TYPE 2 (320x200x256) Default Picture Type
MAX_PICSETS 5 Maximum number of picture sets in commands that take start,end,frames triplets.
MAX_FRAMES 500 Maximum frames value allowed in a picture set triplet.
COGVAR_CLEARCOLOR 4 Cogsys variable that specifies what color the graphics mode clear screen uses.
COGVAR_TIME 5 Cogsys variable that holds the latest reaction time.
COGVAR_KEY 7 Cogsys variable that holds the latest reaction key.
MACRO_NUM 20 Maximum number of macros which can be declared.
MACRO_ARG_NUM 8 Maximum number of arguments to a macro call.
MACRO_ARG_LEN 16 Maximum string length of a macro argument variable.
MACRO_SIZE 20784 Maximum size of a macro, after argument substitution.
MACRO_CORE 10384 Maximum size of a macro, before argument substitution.
MACRO_EXPANDS 10400 Maximum number of characters a macro can expand by.
END_OF_MACRO "\0" Character indicating the end of a macro.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on November, 24 2008 using texi2html