Skip to content

2. Variables

Kravitz Lab edited this page Dec 30, 2020 · 23 revisions

These can be set or recalled in your sketch

  • String sketch: String, unique identifier text for each sketch (this will show up on the screen and in log file). Example:
    String sketch = "FreeFeed";
  • LeftCount: Int, total number of pokes on the left nosepoke, initializes to 0
  • leftInterval: Int, duration of the last left nosepoke in ms
  • RightCount: Int, number of pokes on the right nosepoke, initializes to 0
  • rightInterval: Int, duration of the last right nosepoke in ms
  • PelletCount: Int, total number of pellets dispensed, initializes to 0
  • retInterval: Int, how long the pellet remained in the well before it was taken in ms. Times out at 60000ms
  • timeout: Int, a timeout period where FED3 will be unresponsive (in seconds). Initializes to 0. Example:
    fed3.timeout = 10; //Set a timeout period of 10 seconds, starting after each pellet is taken
  • Event: String, variable containing which type of event triggered the datalogging, options are Left, Right, or Pellet
  • EnableSleep: Boolean, defaults to "true". Set to "false" to disable sleep functionality. Turning off sleep will drain the battery much faster but can be useful when troubleshooting new programs.
Clone this wiki locally