05-26-2020, 11:19 PM
Hello everyone,
There are two parts to my question:
1. Does BPOD allows for real-time data acquisition through the AnalogInput module, as opposed to recording data for a certain amount of time and then analyzing it later?
2. Can I create a state-change trigger off of this analog signal, as opposed to a TTL pulse on a given behavioral port.
In short, I would like to record from a sensor (analog load cell + amplifier) that is connected to the AnalogInput module. I would then like to trigger a reward (say from a water spout) based on this analog signal reaching a certain (perhaps user-specified) value and staying there for a certain period of time. It is important to note that a simple threshold crossing will not satisfy my requirements, as I want to continuously monitor the analog signal and prescribe it to stay within a certain range over a brief period of time.
I can only seem to find documentation and examples of state-changes based on binary "on/off" event types on a specified channel. I would like to create a state-change based on calculations performed in software during the "Main Loop" protocol phase. Is triggering events possible in software, or only with hardware TTL pulses?
Thanks a bunch!
There are two parts to my question:
1. Does BPOD allows for real-time data acquisition through the AnalogInput module, as opposed to recording data for a certain amount of time and then analyzing it later?
2. Can I create a state-change trigger off of this analog signal, as opposed to a TTL pulse on a given behavioral port.
In short, I would like to record from a sensor (analog load cell + amplifier) that is connected to the AnalogInput module. I would then like to trigger a reward (say from a water spout) based on this analog signal reaching a certain (perhaps user-specified) value and staying there for a certain period of time. It is important to note that a simple threshold crossing will not satisfy my requirements, as I want to continuously monitor the analog signal and prescribe it to stay within a certain range over a brief period of time.
I can only seem to find documentation and examples of state-changes based on binary "on/off" event types on a specified channel. I would like to create a state-change based on calculations performed in software during the "Main Loop" protocol phase. Is triggering events possible in software, or only with hardware TTL pulses?
Thanks a bunch!