Instruction manual
Appendix H-The Programming Script AXIS 2400 Administration Manual
66
Example 3
buffer_stop
The buffer_stop command ends the storing of snapshots in an image buffer. Until completed, the
buffer_stop command will block the execution of any subsequent commands in the event entry.
Note that the buffer_start command behaves differently.
The command is typically used together with the buffer_start command.
S
SS
Sy
yy
yn
nn
nt
tt
ta
aa
ax
xx
x
buffer_stop [-src SOURCEFILE] [-cam CAMERANUMBER]
[-interval TIME] [-duration TIME] [-store SIZE];
O
OO
Op
pp
pt
tt
ti
ii
io
oo
on
nn
ns
ss
s
-src
Specifies the source file name, i.e.
halfsize.jpg
,
fullsize.jpg
or
hugesize.jpg
.
-cam Specifies the camera source, i.e. 1-5. If omitted, the default camera will be used.
-interval
Specifies the time interval between consecutive snapshots. If omitted, new snapshots will be
generated without any delay. Format: h<hours>m<minutes>s<seconds>
.
-duration
Specifies the total time for the command to run. If omitted, the buffer_start command will
be issued only once. Format:
h<hours>m<minutes>s<seconds>. If you specify
-duration inf , the command will continue to be executed until it is interrupted by a
buffer_init command.
-store
# At startup, the buffer is initialized to hold 15
# fullsize.jpg images. New images are captured once
# every second until another buffer_start or
# buffer_stop command is issued.
* * * * * BOOT :
buffer_init 1,2,15;
buffer_start -src fullsize.jpg -interval s1 -duration inf;
%
# When port 1 is triggered, additional 5 images are
# captured before the buffer is locked. All the
# images in the buffer are then sent in an e-mail to
# someuser@somehost.com. Finally the buffer is
# restarted.
* * * * * /I1:
buffer_stop -src fullsize.jpg -store 5;
mail -s "Buffered images" -a images/buffer.jpg -t someuser@somehost.com -b
fullsize.jpg -n 15;
buffer_start -src fullsize.jpg -interval s1 -duration inf;
%