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.
-
class
usbtmc.Instrument(*args, **kwargs)[source]
USBTMC instrument interface client
-
ask(message, num=- 1, encoding='utf-8')[source]
Write then read string
-
ask_raw(data, num=- 1)[source]
Write then read binary data
-
clear()[source]
Send clear command
-
local()[source]
Send local command
-
lock()[source]
Send lock command
-
pulse()[source]
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')[source]
Read string from instrument
-
read_raw(num=- 1)[source]
Read binary data from instrument
-
read_stb()[source]
Read status byte
-
remote()[source]
Send remote command
-
trigger()[source]
Send trigger command
-
unlock()[source]
Send unlock command
-
write(message, encoding='utf-8')[source]
Write string to instrument
-
write_raw(data)[source]
Write binary data to instrument