-
Notifications
You must be signed in to change notification settings - Fork 0
/
training_check.txt
201 lines (140 loc) · 5.08 KB
/
training_check.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# This sample script is written for a mild shock aversion learning assay.
# Users need to ensure that the correct assets are used in the script and saved to the unit's Media directory.
# The metal shocking plates should be plugged in and place at the ends of the tank.
INCLUDE ZSYS
DEFINE CIRCLE 1
DEFINE SQUARE 2
DEFINE SPRITE 5
# define experiment requirements
DEFINE CS_TIME 1
DEFINE AS_TIME 60
DEFINE ITI_TIME 900
# define the animal model tracking requirments (dependent on animal size)
SET(DETECTOR_THRESHOLD,5)
SET(SEARCH_DISTANCE,50)
SET(SEARCH_STEP,7)
SET(FILTER_RADIUS,15)
# define auto reference tracking requirements
SET(AUTOREF_MODE,0) #movement based
SET(AUTOREF_TIMEOUT,60)
AUTOREFERENCE()
# loads tracking assets
LOAD(DETECTORS,"zones_2w.bmp")
LOAD(ARENAS,"arenas_4l_shock.bmp")
# loads the voltage level for the shocking plates
SET(VOLTAGE_LEVEL,9000)
SET(COUNTER1,COUNTER_ZERO)
SET(COUNTER2,COUNTER_ZERO)
SET(COUNTER3,COUNTER_ZERO)
ACTION MAIN
LIGHTS(ALL,OFF)
AUTOREFERENCE()
VIDEO(2040,"controlcheck")
LOGCREATE("RUNTIME|TEXT:PHASE|TEXT:TIME_BIN")
LOGAPPEND("TEXT:ARENA1_ZONE1_DISTANCE|TEXT:ARENA1_ZONE2_DISTANCE")
LOGAPPEND("TEXT:ARENA2_ZONE1_DISTANCE|TEXT:ARENA2_ZONE2_DISTANCE")
LOGAPPEND("TEXT:ARENA3_ZONE1_DISTANCE|TEXT:ARENA3_ZONE2_DISTANCE")
LOGAPPEND("TEXT:ARENA4_ZONE1_DISTANCE|TEXT:ARENA4_ZONE2_DISTANCE")
LOGAPPEND("TEXT:ARENA1_ZONE1_TIME|TEXT:ARENA1_ZONE2_TIME")
LOGAPPEND("TEXT:ARENA2_ZONE1_TIME|TEXT:ARENA2_ZONE2_TIME")
LOGAPPEND("TEXT:ARENA3_ZONE1_TIME|TEXT:ARENA3_ZONE2_TIME")
LOGAPPEND("TEXT:ARENA4_ZONE1_TIME|TEXT:ARENA4_ZONE2_TIME")
LOGAPPEND("TEXT:ARENA1_ZONE1_ENTRIES|TEXT:ARENA1_ZONE2_ENTRIES")
LOGAPPEND("TEXT:ARENA2_ZONE1_ENTRIES|TEXT:ARENA2_ZONE2_ENTRIES")
LOGAPPEND("TEXT:ARENA3_ZONE1_ENTRIES|TEXT:ARENA3_ZONE2_ENTRIES")
LOGAPPEND("TEXT:ARENA4_ZONE1_ENTRIES|TEXT:ARENA4_ZONE2_ENTRIES")
LOGAPPEND("TEXT:ARENA1_TOTAL_DISTANCE|TEXT:ARENA2_TOTAL_DISTANCE")
LOGAPPEND("TEXT:ARENA3_TOTAL_DISTANCE|TEXT:ARENA4_TOTAL_DISTANCE")
LOGRUN()
LOGDATA(DATA_SNAPSHOT,"begin")
INVOKE(SHOCK,12)
INVOKE(NOSHOCK,1)
INVOKE(INTERTRIAL,1)
INVOKE(SHOCK,12)
INVOKE(NOSHOCK,1)
INVOKE(INTERTRIAL,1)
INVOKE(SHOCK,12)
INVOKE(NOSHOCK,1)
INVOKE(INTERTRIAL,1)
INVOKE(SHOCK,12)
INVOKE(NOSHOCK,1)
INVOKE(INTERTRIAL,1)
INVOKE(SHOCK,12)
INVOKE(NOSHOCK,1)
INVOKE(INTERTRIAL,1)
INVOKE(SHOCK,12)
INVOKE(NOSHOCK,1)
INVOKE(INTERTRIAL,1)
LOGDATA(DATA_SNAPSHOT,"after")
LOGDATA(DATA_SELECT,"begin")
LOGDATA(DATA_DELTA,"after")
LOGCREATE("RUNTIME|TEXT:TOTAL|TEXT:")
LOGAPPEND("ZONE_DISTANCES:A1-4 Z1-2|ZONE_TIMERS:A1-4 Z1-2")
LOGAPPEND("ZONE_COUNTERS:A1-4 Z1-2|ARENA_DISTANCES:A1-4")
LOGRUN()
LIGHTS(ALL,OFF)
COMPLETE
ACTION SHOCK
SET(COUNTER1,COUNTER_INC)
LOGDATA(DATA_SNAPSHOT,"SHOCK")
INVOKE(LT1CHECKLT2CHECK,1)
WAIT(CS_TIME)
SET(VOLTAGE4,750)
WAIT(CS_TIME)
SET(VOLTAGE4,750)
WAIT(CS_TIME)
SET(VOLTAGE4,750)
WAIT(CS_TIME)
SET(VOLTAGE4,750)
WAIT(CS_TIME)
SET(VOLTAGE4,750)
LOGDATA(DATA_SNAPSHOT,"AFTERSHOCK")
LOGDATA(DATA_SELECT,"SHOCK")
LOGDATA(DATA_DELTA,"AFTERSHOCK")
LOGCREATE("RUNTIME|TEXT:SHOCK|COUNTER1")
LOGAPPEND("ZONE_DISTANCES:A1-4 Z1-2|ZONE_TIMERS:A1-4 Z1-2")
LOGAPPEND("ZONE_COUNTERS:A1-4 Z1-2|ARENA_DISTANCES:A1-4")
LOGRUN()
COMPLETE
ACTION NOSHOCK
SET(COUNTER2,COUNTER_INC)
LOGDATA(DATA_SNAPSHOT,"NOSHOCK")
INVOKE(LT1GREYLT2GREY,1)
WAIT(AS_TIME)
LOGDATA(DATA_SNAPSHOT,"AFTERNOSHOCK")
LOGDATA(DATA_SELECT,"NOSHOCK")
LOGDATA(DATA_DELTA,"AFTERNOSHOCK")
LOGCREATE("RUNTIME|TEXT:NOSHOCK|COUNTER2")
LOGAPPEND("ZONE_DISTANCES:A1-4 Z1-2|ZONE_TIMERS:A1-4 Z1-2")
LOGAPPEND("ZONE_COUNTERS:A1-4 Z1-2|ARENA_DISTANCES:A1-4")
LOGRUN()
COMPLETE
ACTION INTERTRIAL
SET(COUNTER3,COUNTER_INC)
LOGDATA(DATA_SNAPSHOT,"BEGINITI")
LIGHTS(ALL,OFF)
WAIT(ITI_TIME)
LOGDATA(DATA_SNAPSHOT,"AFTERITI")
LOGDATA(DATA_SELECT,"BEGINITI")
LOGDATA(DATA_DELTA,"AFTERITI")
LOGCREATE("RUNTIME|TEXT:ITI|COUNTER3")
LOGAPPEND("ZONE_DISTANCES:A1-4 Z1-2|ZONE_TIMERS:A1-4 Z1-2")
LOGAPPEND("ZONE_COUNTERS:A1-4 Z1-2|ARENA_DISTANCES:A1-4")
LOGRUN()
COMPLETE
ACTION LT1GREYLT2GREY
SETLIGHT(LIGHT1,SPRITE,300,500,1000)
SETLIGHT(LIGHT2,SPRITE,1300,500,1000)
LOAD(SPRITE_FILE,"1:grey128x128")
LOAD(SPRITE_FILE,"2:grey128x128")
LIGHTS(LIGHT1,ON)
LIGHTS(LIGHT2,ON)
COMPLETE
ACTION LT1CHECKLT2CHECK
SETLIGHT(LIGHT1,SPRITE,300,500,1000)
SETLIGHT(LIGHT2,SPRITE,1300,500,1000)
LOAD(SPRITE_FILE,"1:check640x640")
LOAD(SPRITE_FILE,"2:check640x640")
LIGHTS(LIGHT1,ON)
LIGHTS(LIGHT2,ON)
COMPLETE