gpib_ctypes package

Submodules

gpib_ctypes.Gpib module

class gpib_ctypes.Gpib.Gpib(name='gpib0', pad=None, sad=0, timeout=13, send_eoi=1, eos_mode=0)[source]

Bases: object

Three ways to create a Gpib object: Gpib(“name”)

returns a board or device object, from a name in the config file
Gpib(board_index)
returns a board object, with the given board number
Gpib(board_index, pad[, sad[, timeout[, send_eoi[, eos_mode]]]])
returns a device object, like ibdev()
ask(option)[source]
clear()[source]
close()[source]
command(str)[source]
config(option, value)[source]
ibcnt()[source]
ibloc()[source]
ibsta()[source]
interface_clear()[source]
lines()[source]
listener(pad, sad=0)[source]
read(len=512)[source]
remote_enable(val)[source]
serial_poll()[source]
timeout(value)[source]
trigger()[source]
wait(mask)[source]
write(str)[source]
write_async(str)[source]

Module contents

Top-level package for gpib-ctypes.

gpib_ctypes.make_default_gpib()[source]

Monkeypatches gpib_ctypes.gpib and gpib_ctypes.Gpib modules to be used as the only gpib and Gpib modules by the running process.

Example usage with pyvisa-py:

from gpib_ctypes import make_default_gpib make_default_gpib() # call early in __main__

import visa rm = visa.ResourceManager(@py’) # rm now uses gpib_ctypes