mpylab.device.communication_prologix module

This is the mpylab.device.communication_prologix module.

author:

Hans Georg Krauthäuser (main author)

license:

GPLv3 or higher

class mpylab.device.communication_prologix.CommunicationPrologix(ip, port, gpib, bufsize=4096, TXEOL=b'\n', timeout_s=3, send_clr=False, send_ifc=False, encoding='ascii')

Bases: object

CommunicationPrologix class.

close()

close method.

query(cmd, tmpl=None, send_opc=False)
Parameters:
  • cmd – Command text sent to the instrument.

  • tmpl – Regex pattern for generic_query or None.

  • send_opc – Append ; *OPC? to non-query commands when True.

Returns:

Parsed response, raw response, or None.

read(tmpl=None)
Parameters:

tmpl – Regex pattern for generic_read or None.

Returns:

Parsed response, raw response, or None.

write(cmd)
Parameters:

cmd – Command text sent to the instrument.

Returns:

Number of characters sent for the payload command.