Getting information about connected devices¶
- picodaq.device.devices() Dict[str, str]¶
Enumerate the PicoDAQs connected to the computer
Returns
A dictionary mapping serial port names to serial numbers
See also
find.
- picodaq.device.find(serno: str) str¶
Find a picoDAQ by serial number
Parameters
serno - Serial number of device to find
Returns
Serial port name of found device
Raises exception if device is not found. See also
devices.
- picodaq.device.deviceinfo(port: str | None = None) Dict[str, Any]¶
Detailed information about a picoDAQ device
- Parameters:
port – Serial port name of device
- Returns:
Dictionary with information
If no port is specified, the first device found on the system is queried. If no device is found, an exception is raised.
The result is a dictionary defining the following keys:
firmware: the firmware version of the device hardware: the hardware version of the device serialno: the serial number of the device analog_in_count: the number of analog input channels analog_out_count: the number of analog output channels digital_in_count: the number of digital input lines digital_out_count: the number of digital output lines max_sampling_rate_Hz: the maximum sampling rate, in hertz analog_in_range_V: the input voltage range analog_out_range_V: the input voltage range
Voltage ranges are returned as a tuple expressing the minimum and maximum values in volts.