ebilab.experiment.devices.visa package

Utility and base class related to visa

This library depends on pyvisa for VISA control.

exception ebilab.experiment.devices.visa.DeviceNotFoundError[ソース]

ベースクラス: Exception

class ebilab.experiment.devices.visa.VisaDevice(*, addr: str = None, **kwargs)[ソース]

ベースクラス: object

Base class of visa device.

You can inherit this class and implement class to new device.

pyvisa_inst

instance from ResourceManager.open_resource of pyvisa module Please use this only when you use method which is not supported in VisaDevice class

visa_query(cmd: str)[ソース]

Send command to visa device and read output from device Equivalent to inst.query() in pyvisa class

visa_write(cmd: str)[ソース]

Send command to visa device Equivalent to inst.write() in pyvisa class

class ebilab.experiment.devices.visa.VisaManager[ソース]

ベースクラス: object

Manager class of visa device based on pyvisa module

Do not intialize directory, use get_visa_manager() method instead.

get_inst(pattern: str) Resource | None[ソース]

Get pyvisa instance from pattern that matches *IDN? result.

パラメータ:

pattern (str) -- regex pattern

戻り値:

pyvisa Resource

property rm

ResourceManager of pyvisa module

ebilab.experiment.devices.visa.get_visa_manager()[ソース]

Function to get VisaManager class. Many times of call of this function returns same VisaManager.

戻り値:

VisaManager class