Skip to content

Keithley

Keithley

Keithley(
    keithley_class: str,
    host: str | None = None,
    name: str | None = None,
    *,
    adapter: str | None = None,
    read_termination: str = "\n",
    write_termination: str = "\n",
    timeout: int = 2000,
    verbose: bool = False,
    **kwargs,
)

Bases: Measurer

Initialize Measurer class

PARAMETER DESCRIPTION
verbose

verbosity of class. Defaults to False.

TYPE: bool DEFAULT: False

connection_details property

connection_details: dict

Connection details for the device

host property writable

host: str

BioLogicDevice address

is_connected property

is_connected: bool

Whether the device is connected

name property

name: str

Device name

clearCache

clearCache()

Clear the cache

connect

connect()

Connect to the device

disconnect

disconnect()

Disconnect from the device

getDataframe

getDataframe(
    data_store: Iterable[tuple[NamedTuple, datetime]],
) -> DataFrame

Get dataframe of data collected

PARAMETER DESCRIPTION
data_store

data store

TYPE: Iterable[tuple[NamedTuple, datetime]]

RETURNS DESCRIPTION
DataFrame

pd.DataFrame: dataframe of data collected

measure

measure(
    *args,
    parameters: dict | None = None,
    blocking: bool = True,
    **kwargs,
) -> DataFrame | None

Run the measurement program

args: positional arguments parameters (dict, optional): dictionary of kwargs. Defaults to None. blocking (bool, optional): whether to block until completion. Defaults to True. *kwargs: keyword arguments

RETURNS DESCRIPTION
DataFrame | None

pd.DataFrame|None: dataframe of data collected

saveData

saveData(filepath: str | Path)

Save data to file

PARAMETER DESCRIPTION
filepath

path to save file

TYPE: str | Path