usbtmc — USBTMC driver

This module provides a USBTMC instrument driver.

Functions and Exceptions

exception usbtmc.UsbtmcError

Exception raised on various occasions; argument is a string describing what is wrong.

Instrument class

class usbtmc.Instrument(*args, **kwargs)

USBTMC instrument interface client

ask(message, num=-1, encoding='utf-8')

Write then read string

ask_raw(data, num=-1)

Write then read binary data

clear()

Send clear command

local()

Send local command

lock()

Send lock command

pulse()

Send a pulse indicator request, this should blink a light for 500-1000ms and then turn off again. (Only if supported)

read(num=-1, encoding='utf-8')

Read string from instrument

read_raw(num=-1)

Read binary data from instrument

read_stb()

Read status byte

remote()

Send remote command

trigger()

Send trigger command

unlock()

Send unlock command

write(message, encoding='utf-8')

Write string to instrument

write_raw(data)

Write binary data to instrument

Table Of Contents

Previous topic

Python USBTMC Examples

Next topic

Appendix

This Page