# This demo script demonstrates how to use the overhead lights available in the # Zantiks units. # You will need to plug in the lights wires into the relevant socket. # You will need to plug in the the external light. # 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. ############################################################################### # DEFINE commands are 'find and replace' commands. This will lead to all references of the 'expression statement' # in this script being replaced with the specified value. The define statement can be used to change a particular value whenever it occurs in the script. DEFINE WAIT_TIME 2 ACTION MAIN INVOKE(OVERHEAD_LIGHTS_CN3B,1) INVOKE(OVERHEAD_LIGHTS_CN3A,1) INVOKE(OVERHEAD_LIGHTS_CN8,1) COMPLETE ACTION OVERHEAD_LIGHTS_CN3B # This code is for when the overhead lights are plugged into the socket CN3B. # For a dimmer overhead light see the code for OVERHEAD_LIGHTS_CN8 ACTION OVERHEAD_LIGHTS_CN3B #OFF SET(GPO6,0) SET(GPO7,0) SET(GPO8,0) WAIT(WAIT_TIME) #RED SET(GPO6,1) SET(GPO7,0) SET(GPO8,0) WAIT(WAIT_TIME) #GREEN SET(GPO6,0) SET(GPO7,1) SET(GPO8,0) WAIT(WAIT_TIME) #BLUE SET(GPO6,0) SET(GPO7,0) SET(GPO8,1) WAIT(WAIT_TIME) #YELLOW SET(GPO6,1) SET(GPO7,1) SET(GPO8,0) WAIT(WAIT_TIME) #MAGENTA SET(GPO6,1) SET(GPO7,0) SET(GPO8,1) WAIT(WAIT_TIME) #CYAN SET(GPO6,0) SET(GPO7,1) SET(GPO8,1) WAIT(WAIT_TIME) #WHITE SET(GPO6,1) SET(GPO7,1) SET(GPO8,1) WAIT(WAIT_TIME) COMPLETE ACTION OVERHEAD_LIGHTS_CN3A #OFF SET(GPO3,0) SET(GPO4,0) SET(GPO5,0) WAIT(WAIT_TIME) #RED SET(GPO3,1) SET(GPO4,0) SET(GPO5,0) WAIT(WAIT_TIME) #GREEN SET(GPO3,0) SET(GPO4,1) SET(GPO5,0) WAIT(WAIT_TIME) #BLUE SET(GPO3,0) SET(GPO4,0) SET(GPO5,1) WAIT(WAIT_TIME) #YELLOW SET(GPO3,1) SET(GPO4,1) SET(GPO5,0) WAIT(WAIT_TIME) #MAGENTA SET(GPO3,1) SET(GPO4,0) SET(GPO5,1) WAIT(WAIT_TIME) #CYAN SET(GPO3,0) SET(GPO4,1) SET(GPO5,1) WAIT(WAIT_TIME) #WHITE SET(GPO3,1) SET(GPO4,1) SET(GPO5,1) WAIT(WAIT_TIME) COMPLETE ACTION OVERHEAD_LIGHTS_CN8 LIGHTS(LIGHT16,RED) WAIT(WAIT_TIME) LIGHTS(LIGHT16,GREEN) WAIT(WAIT_TIME) LIGHTS(LIGHT16,BLUE) WAIT(WAIT_TIME) LIGHTS(LIGHT16,YELLOW) WAIT(WAIT_TIME) LIGHTS(LIGHT16,CYAN) WAIT(WAIT_TIME) LIGHTS(LIGHT16,MAGENTA) ​WAIT(WAIT_TIME) LIGHTS(ALL,OFF) COMPLETE ACTION EXTERNAL_LIGHT LIGHTS(LIGHT15,RED) WAIT(WAIT_TIME) LIGHTS(LIGHT15,GREEN) WAIT(WAIT_TIME) LIGHTS(LIGHT15,BLUE) WAIT(WAIT_TIME) LIGHTS(LIGHT15,YELLOW) WAIT(WAIT_TIME) ​ LIGHTS(LIGHT15,CYAN) WAIT(WAIT_TIME) ​ LIGHTS(LIGHT15,MAGENTA) WAIT(WAIT_TIME) ​ LIGHTS(ALL,OFF) COMPLETE