Errors
This article covers how to resolve common errors on the Behavior device.
COM port errors
Q: In Bonsai, running the workflow throws an error "The port ComX does not exist".
A: Either the wrong communications port in the PortName property in Device was selected, or the USB cable is not properly connected. Try selecting a different communications port and checking the connection.
Q: Running the Bonsai workflow or connecting to the device in the Behavior app throws an error "Access to the port ComX is denied".
A: Only one interface connection to the Behavior device can be opened at one time. Check that Bonsai and the Behavior app are not running at the same time, or that multiple instances of either are running. Sometimes, the port can also be locked by a program that did not terminate correctly; restarting the computer fixes it.
Device errors
Q: Poke events stopped arriving from port P2.
A: One possible reason is that the quadrature encoder is enabled, as port P2 repurposes its input lines for the quadrature counter. Disable the encoder to restore poke detection.
Q: An external device does not detect the low state of a digital output. The line reads 5 V when the output is set, but does not reach 0 V when it is cleared.
A: The input line on the external device might have low impedance. The DO0–DO3 outputs are designed for high-impedance inputs and return to 0 V through a passive pull-down resistor. Try using the poke port digital outputs with the Breakout, as those pins have an actively driven low state.
Also check that the ground connection is shared between the devices, as improper grounding can produce offset voltage levels in the low state.
Q: How do I use the DIO pins on the poke ports as digital outputs?
A: The DIO line on ports P0–P2 works only as a digital input, as the functionality to switch the pins from digital input to digital output has not been implemented yet. A DIO line can still follow the infrared beam or valve of a poke when it is selected as a mimic output, as described in Mimic poke signals.
Documentation for release v3.4.0