lightlab.equipment.visa_bases.visa_object module

Summary

Classes:

VISAObject Abstract class for something that communicates via messages (GPIB/USB/Serial/TCPIP/etc.).

Data:

CR str(object=’‘) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
LF str(object=’‘) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
OPEN_RETRIES int(x=0) -> integer int(x, base=10) -> integer

Reference

class VISAObject(address=None, tempSess=False)[source]

Bases: lightlab.equipment.visa_bases.driver_base.InstrumentSessionBase

Abstract class for something that communicates via messages (GPIB/USB/Serial/TCPIP/etc.). It handles message-based sessions in a way that provides a notion of object permanence to the connection with a particular address.

It acts like a pyvisa message-based session, but it is not a subclass; it is a wrapper. It only contains one (at at time). That means VISAObject can offer extra opening, closing, session management, and error reporting features.

This class relies on pyvisa to work

Parameters:
  • tempSess (bool) – If True, the session is opened and closed every time there is a command
  • address (str) – The full visa address
resMan = None
mbSession = None
open()[source]

Open connection with 5 retries.

close()[source]
write(writeStr)[source]
query(queryStr, withTimeout=None)[source]
instrID()[source]

Returns the *IDN? string

timeout
wait(bigMsTimeout=10000)[source]
LLO()[source]
LOC()[source]
clear()[source]
query_raw_binary()[source]
spoll()[source]
termination