CIGAL Users,
Jim told me the answer to my question yesterday. I will post what he told me for everyone's reference.
Menus in CIGAL are created using a simple text file (.mnu). The name of the text file is the name of the menu.
example.mnu:"MENUNAME1
CODE
CODE
CODE
"MENUNAME2
CODE
"MENUNAME3
CODE
CODE
"(-
"MENUNAME4
CODE
CODE
Each menu items starts with a " followed by the name of the menu. The line(s) following the menu item are the CIGAL code to execute when the menu item is chosen. A blank line separates the menu items. The "(- creates a horizontal separator between menu items. There cannot be any code associated with a "(- menu item since it cannot be selected.
Here is an example of a menu file which allows you to load the paradigm file for each run by selecting a menu item.
experiment.mnu:"Load run01.ppf
showplay run01.ppf
"Load run02.ppf
showplay run02.ppf
"Load run03.ppf
showplay run03.ppf
"Load run04.ppf
showplay run04.ppf
"(-
"Run
showplay
You could also have CIGAL load and start each paradigm by selecting a single menu item for each run.
experiment2.mnu:"Load run01.ppf
showplay run01.ppf
showplay
"Load run02.ppf
showplay run02.ppf
showplay
"Load run03.ppf
showplay run03.ppf
showplay
"Load run04.ppf
showplay run04.ppf
showplay
To load a menu in CIGAL, type menu "MNUFILENAME" where MNUFILENAME is the name of the menu file without the .mnu. You can also have the menu automatically load by using a text file called start.imp in the same folder as your start.cgl file. This file is automatically executed when CIGAL starts. If you put your menu loading command in this file, it will automatically load the menu as shown in the following example.
start.imp:menu "experiment"
People have found that making custom menus to load paradigm files can save time and reduce errors when running an experiment using CIGAL.
Enjoy,
Chuck