Changes

Jump to navigation Jump to search
1,568 bytes added ,  20:32, 8 November 2020
added file formats
Line 31: Line 31:  
#volume per lick, measured in microliters
 
#volume per lick, measured in microliters
 
#efficiency, in grams / minute (intake / ((total number of bouts)X(total bout duration))
 
#efficiency, in grams / minute (intake / ((total number of bouts)X(total bout duration))
 +
 +
==Hotel File Formats==
 +
 +
===Raw File Format===
 +
 +
6 byte header with 3 numbers. Each number is 16 bit integer, in lo-hi byte order
 +
 +
file_buffer [0],[1]  -- # of pts in the file -- maximum of 13800 (0x35E8)
 +
file_buffer [2],[3] -- pt of lights OFF
 +
file_buffer [4],[5] -- pt of lights ON
 +
 +
data pts represent 6-second bins. Each data pt is 1 byte. There are 3 channels of data pts.
 +
 +
For the food cup channel, the data pt contains number of seconds the infrared beam was broken per bin (range: 0-6)
 +
 +
For the 2 bottle channels, the data pt contains the number of beam breaks (licks) per bin (range: 0 - ~40)
 +
 +
The arrays of data pts for each  data channel appear consecutively in the data file
 +
 +
file_buffer[6] to file_buffer[num_of_pts+5] = food cup data pts
 +
file_buffer[6 + num_of_pts] to file_buffer[(2*num_of_pts)+5]  = left bottle data pts
 +
file_buffer[6 + (2*num_of_pts)] to file_buffer[(3*num_of_pts)+5]  = right bottle data pts
 +
 +
 +
===CSV Files produced by LTAW===
 +
 +
header line, followed by one line for each bout (note commas at end of line...)
 +
 +
name of bout file:
 +
"B<channel0-1>YYMMDD.CSV"
 +
<filename>,<nothing?>,<channel0-2>,<lightsoff_pt>,<totalcounts>,<lightson_pt>,<pts_per_bin?>,<startpt>,<endpt>,<validpt>,<minbin>,<IBIpts>,
 +
<zeroindexed bout num>,<startpt>,<endpt>,<counts>,
 +
 +
example:
 +
CA15SET.C01,,0,7037,4181,11384,1,0,13797,3,50,30,
 +
0,2222,2242,109,
 +
1,3194,3269,392,
 +
2,4201,4325,526,
 +
3,4441,4686,977,
 +
4,5628,5719,479,
 +
5,6114,6251,678,
 +
6,7139,7245,585,
 +
7,7400,7492,459,
 +
8,8204,8330,543,
 +
9,9440,9685,1102,
 +
10,10159,10275,607,
 +
11,10782,10886,541
 +
    
==LTAW Variables==
 
==LTAW Variables==

Navigation menu