navigate Logo

Getting Started

  • Quick Start Guide
  • Software Installation
  • I Want To…

User Guide

  • Supported Hardware
  • Supported File Formats
  • User Interface Walkthrough
  • Setting Up A Microscope
  • Acquiring Data
  • Case Studies

Development

  • Contributing Guidelines
  • Developer Install
  • Software Architecture
  • Feature Container
  • REST-API
  • Plugin Architecture

Troubleshooting & Known Issues

  • Troubleshooting
  • Known Issues

Plugins

  • navigate Plugin Template
  • navigate Confocal Projection
  • navigate at Scale
  • navigate Constant Velocity Acquisition
  • navigate MMCore
  • navigate ilastik Server
  • navigate Photoactivation

Reference

  • Implemented Microscopes
  • Software API
    • navigate.config
    • navigate.controller
    • navigate.controller.configurator
    • navigate.log_files
    • navigate.model
      • navigate.model.analysis
      • navigate.model.concurrency
      • navigate.model.data_sources
      • navigate.model.device_startup_functions
      • navigate.model.devices
        • navigate.model.devices.MonitoredSerial
        • navigate.model.devices.camera
        • navigate.model.devices.daq
        • navigate.model.devices.device_types
        • navigate.model.devices.filter_wheel
        • navigate.model.devices.galvo
        • navigate.model.devices.laser
        • navigate.model.devices.mirror
        • navigate.model.devices.objectives
        • navigate.model.devices.pump
        • navigate.model.devices.remote_focus
        • navigate.model.devices.shutter
        • navigate.model.devices.stage
        • navigate.model.devices.zoom
      • navigate.model.features
      • navigate.model.metadata_sources
      • navigate.model.microscope
      • navigate.model.model
      • navigate.model.plugins_model
      • navigate.model.waveforms
    • navigate.tools
    • navigate.view
navigate
  • Software API
  • navigate.model
  • navigate.model.devices
  • navigate.model.devices.device_types
  • navigate.model.devices.device_types.SerialDevice
  • View page source

navigate.model.devices.device_types.SerialDevice

class navigate.model.devices.device_types.SerialDevice(device_name: str, port: str = '', baudrate: int = 115200, timeout: float = 0.25, **kwargs)

Bases: object

SerialDevice - Parent serial device class.

__init__(device_name: str, port: str = '', baudrate: int = 115200, timeout: float = 0.25, **kwargs) → None

Initialize SerialDevice class.

Parameters:
  • device_name (str) – Name of the device, used as a unique identifier.

  • port (str, optional) – Serial port to connect to the device, by default an empty string.

  • baudrate (int, optional) – Baud rate for the serial connection, by default 115200.

  • timeout (float, optional) – Timeout for the serial connection in seconds, by default 0.25.

Methods

__init__(device_name[, port, baudrate, timeout])

Initialize SerialDevice class.

connect(port[, baudrate, timeout])

Connect to serial device.

disconnect()

Disconnect from serial device.

Attributes

device_name

Name of the device, used as a unique identifier.

unique_id

Unique identifier for the device, serial_ followed by the port.

connect(port: str, baudrate: int = 115200, timeout: float = 0.25) → object

Connect to serial device.

Parameters:
  • port (str) – Serial port to connect to the device.

  • baudrate (int, optional) – Baud rate for the serial connection, by default 115200.

  • timeout (float, optional) – Timeout for the serial connection in seconds, by default 0.25.

Returns:

The serial connection object if successful, otherwise None.

Return type:

serial.Serial

disconnect() → None

Disconnect from serial device.

device_name

Name of the device, used as a unique identifier.

Type:

str

unique_id

Unique identifier for the device, serial_ followed by the port.

Type:

str

Previous Next

© Copyright 2025, Dean Lab, UT Southwestern Medical Center.