GPIB
- class tam.GPIB(gpib_ip='192.168.0.175')[source]
- clear()[source]
Sends the Selected Device Clear (SDC) message to the currently specified GPIB address.
- eot_char(ch)[source]
Specifies the character to be appended to network output when
eot_enable
is set to 1 and EOI is detected.
- eot_enable(f)[source]
Enable or disable the appending of a user specified character (see
eot_char
) to network output whenever EOI is detected while reading a character from the GPIB port.
- property gpib_id
Return the ID of the currently selected instrument.
- read_bin(num_bytes)[source]
Read data from the currently selected instrument.
- Parameters:
num_bytes (int) – The number of bytes of data to read.
- Returns:
The data read from the instrument as a bytearray.
- read_float()[source]
Read a floating point value from the selected device
- Returns:
The read value as a float.