Data Schema#
Version: 0.2.0-draft
Devices#
VideoController#
harp data:
<name>_address.bin [HARP]name
address
payload
attributes
description
pwm_enable39uint16bitmask
specifies which PWM has been enabled
pwm1_freq50float32frequency
the frequency of PWM1 (max: 1000Hz)
pwm1_dutycycle51float32dutycycle
the duty cycle of PWM1 (max: 100%)
pwm1_mode55uint8mode
should always be 0 (infinite)
pwm1_trig56uint8start_trigger
should always be 0 (software trigger)
pwm1_conf_event57uint8rise_event
should always be 1 (enabled)
pwm2_freq58float32frequency
the frequency of PWM1 (max: 1000Hz)
pwm2_dutycycle59float32dutycycle
the duty cycle of PWM1 (max: 100%)
pwm2_mode63uint8mode
should always be 0 (infinite)
pwm2_trig64uint8start_trigger
should always be 0 (software trigger)
pwm2_conf_event65uint8rise_event
should always be 1 (enabled)
pwm_start66uint8bitmask
specifies which PWM has started
pwm_stop67uint8bitmask
specifies which PWM has stopped
pwm_rise_event68uint8bitmask
specifies which PWM has been triggered
VideoSource#
video frames:
<name>.avi [FMP4 codec]video metadata:
<name>.csv [CSV]time
hw_counter
hw_timestamp
float64int64int64(optional) harp data:
<name>_address.bin [HARP]name
address
payload
attributes
description
position200float32[x, y, angle, major, minor, area, id]
one entry for each animal, for each frame
region201uint8area code
one entry for each animal, for each frame
area code map:
name
code
none
0
nest
1
corridor
2
habitat
3
patch1
4
patch2
5
AudioSource#
audio buffers:
<name>.wav [PCM 16-bit mono]audio metadata:
MISSING
PatchController#
patch state:
<name>_State.csv [CSV]time
threshold
d1
delta
float64float64float64float64harp data:
<name>_address.bin [HARP]name
address
payload
attributes
description
beam_break32uint8bitmask
the current state of the beam break
delivery_set35uint8bitmask
a pellet delivery has been requested
delivery_clear36uint8bitmask
the pellet delivery pin has been cleared
expansion_board87uint8expansion
the type of board in the expansion port
encoder_read90uint16[angle, intensity]
the current state of the magnetic encoder
encoder_mode91uint8mode
should always be 4 (500Hz)
dispenser_state200float32value
the estimated number of pellets in the dispenser
delivery_manual201uint8event
a manual pellet delivery has been requested
missed_pellet202uint8event
a pellet has been missed
delivery_retry203uint8bitmask
a pellet delivery command has been retried
WeightScale#
harp data:
<name>_address.bin [HARP]name
address
payload
attributes
description
weight_raw200float32[value, stable]
the raw weight samples (g)
weight_tare201uint8event
a tare command has been sent
weight_filtered202float32[value, stable]
filtered weight samples (
stableis slope of regression)weight_baseline203uint8event
a baseline has been taken
weight_subject204float32[value, stable]
the stable baselined weight of a subject in the nest (g)
ExperimentalMetadata#
environment state:
<name>_EnvironmentState.csv [CSV]time
type
float64Maintenance \ Experimentsubject state:
<name>_SubjectState.csv [CSV]time
id
weight
event
float64strfloat64strsubject visits:
<name>_SubjectVisits.csv [CSV]time
id
event
area
float64strEnter \ Exitstrmessage log:
<name>_MessageLog.csv [CSV]time
priority
type
message
float64Notification \ AlertstrTSV str