# This demo script tests the feeder # This is a sample script that illustrates how zanscript can be written to run an experiment and deliver some example data. Zantiks Ltd cannot guarantee # this is how you want to run your experiments, this script is offered only to demonstrate the capabilities of the system and assist you in learning how # to script for your research. INCLUDE ZSYS # This includes background commands from the system software. Always include this. DEFINE ITI 1 # Defines the term 'ITI' which is used below as a certain amount of time in secs. Change the number to any amount of time you need, in secs. This then automatically updates the time throughout the script where the term is used. DEFINE TRIALS 2 # Defines the number of trials the script will run. Change the number to any amount you need. This then automatically updates the # number of trials throughout the script where the term is used. ACTION MAIN # ACTION MAIN is the whole experiment's outline/schedule. The actions listed here are further explained below. INVOKE(FEEDER_TEST,TRIALS) # Starts the ACTION FEEDER_TEST and repeats the command for the above predefined amount of times "TRIALS". COMPLETE # Signals the system that the ACTION MAIN command is complete and ends the experiment. ACTION FEEDER_TEST # Defines the ACTION FEEDER_TEST below which is used in ACTION MAIN. WAIT(ITI) # System waits the predefined (above) amount time before invoking the next command. FEEDER(1) # Tells system to turn on the feeder mechanism. WAIT(ITI) WAIT(ITI) # System waits the predefined (above) amount time before invoking the next command. FEEDER(0) # Tells system to turn on the feeder mechanism. WAIT(ITI) COMPLETE # Signals the system that the ACTION FEEDER_TEST command is complete.