Pellet feed demo


This script demonstrates the code to include in a script for feeding a pellet to a rat or mouse (assuming the appropriate dispenser is connected).

Top

Script explanation

The script below will deliver 5 pellets, with a wait of 3 seconds between each feed. Parameters can be changed by defining different values.

INCLUDE zsys
 
DEFINE WAIT_TIME_SECS 3
DEFINE REPEAT_NUM 5
 
ACTION MAIN
 
 INVOKE(PELLET,REPEAT_NUM)
 
COMPLETE
 
ACTION PELLET
 
 ZCOMMAND("U0 D1000 M20 M-10 M20 M-10 M20 M-10 M20 M-10 M20 M-10") 
 WAIT(WAIT_TIME_SECS)
 
COMPLETE
Top

Script download

To download the pellet_feed demo script as a .zs file (file type Zantiks software reads), choose the Save File As option in the right-click dialogue box. Clicking on the script name hyperlink will open a read-only version of the script.

Script download: pellet_feed.zs

Top

Pellet being dispensed by feeder