brian.sensors
- SensorException
- SensorAlreadyClosedError
- SensorNotReadyError
- SensorIncompatibleTypeError
- SensorNotConnectedError
- SensorPortAlreadyInUseError
- get_wait_until_timeout_ms
- set_wait_until_timeout_ms
SensorException class objects
Default sensor Exception
SensorAlreadyClosedError class objects
Thrown when trying to access closed Sensor
SensorNotReadyError class objects
Thrown when trying to read values from a sensor that is not ready.
This is the base class for sensor readiness exceptions. Catching this exception will also catch SensorIncompatibleTypeError and SensorNotConnectedError.
SensorIncompatibleTypeError class objects
Thrown when a sensor of a different type than expected is connected.
Catching this exception will also catch SensorNotConnectedError.
SensorNotConnectedError class objects
Thrown when no sensor is connected to the specified port.
SensorPortAlreadyInUseError class objects
Thrown when trying to register sensor or sensor probe with autodetect to already used port
get_wait_until_timeout_ms
Get the current timeout value for waitUntilReady operations in milliseconds
set_wait_until_timeout_ms
Set the default timeout value for waitUntilReady operations in milliseconds. (Wait until ready is invoked in all sensor read operations and constructor calls)
Arguments:
timeout_ms- Timeout in milliseconds for internal wait-until-ready calls.- positive: wait up to that many milliseconds
- 0 or negative: return/raise immediately without waiting