Hi Josh,
Sorry I just noticed that you replied. I have now set up the notification so I can know when you reply.
I am pretty certain that these 0.1ms spikes and missed lick signals only occur on the Bpod side because the simultaneously recorded signal on the DAQ board (through the BNC T adapter) doesn't have the spikes and instead show beautiful lick signals. I believe that the sampling rate on the DAQ board is 50kHz so if the spikes were there as well, I should have seen them. Also note that the lick signals I see on the simultaneously recorded signal on the DAQ board were absent on the Bpod side, which couldn't be due to the sampling rate.
I have a few follow-up questions.
- Is there any chance that the high voltage could have damaged the interface board? Could this issue be due to some malfunction of the interface board instead of the state machine?
- If the damage has been done to the state machine due to the high voltage (but this damage must have been pretty subtle because the Bpod works most of the time now), would it affect other behavior port channels as well? I'm hesitant to buy a new state machine just for the purpose of testing because of its cost.
To answer your questions:
- I am now using a custom designed detector. It outputs 5 V when there is no contact between the lickports and the animal and 0 V when there is a contact.
- I am using a regular 5V power supply for the lick detector. The state machine is connected to the two interface boards which are connected to outputs of the lick detector, a Bpod HiFi Module HD, and computer.
- The lick detector has a BNC output port for each of the two lickports. I attach a BNC T adapter directly to it and then the signal is split and routed to the DAQ board (through the regular BNC cable) and to the interface board (through the BNC to regular wire adapter).