ebilab.experiment.devices.visa

Utility and base class related to visa

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

ベースクラス: Exception

class ebilab.experiment.devices.visa.VisaDevice(*, addr: Optional[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) Optional[Resource][ソース]

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