Previewing Specific Element of an Scripts

Cognition Lib allows you to preview fragments of a script even when you are not done yet with defining the experiment. If the script is not ending with a session definition, the scripting engine will display the content, which is last in the script, in a special debug mode. For example, if the last content in the script is a picture definition, you will see that picture definition in a debug mode and then you can toggle through all picture definitions one by one using the arrow left/right cursor keys. This works for almost all data types such as Pictures, Font, Color, Position, Tone, and Expression, as well as running Trials and Blocks.

You can also select fragments of text in the editor and click on ‘RUN’ to just execute this content. For example, if you select a single picture definition, the scripting engine will just display this picture in debug mode. If there are dependencies between definitions then select all previous content in the script. For example, to test run a trial, define all previous content which is used in that trial.

During the debug view, you can press ‘S’ to add the mm-scale of the display, and ‘v’ to show the content in verbose mode.



Copyright 2021 - BeriSoft Inc.
All rights reserved