Socket

SCPI Command:

SYSTem:COMMunicate:SOCKet:VRESource
SYSTem:COMMunicate:SOCKet:MODE
SYSTem:COMMunicate:SOCKet:PORT
class SocketCls[source]

Socket commands group definition. 3 total commands, 0 Subgroups, 3 group commands

get_mode() ProtocolMode[source]
# SCPI: SYSTem:COMMunicate:SOCKet:MODE
value: enums.ProtocolMode = driver.system.communicate.socket.get_mode()

Sets the protocol operation mode for direct socket communication.

return:

protocol_mode: No help available

get_port() int[source]
# SCPI: SYSTem:COMMunicate:SOCKet:PORT
value: int = driver.system.communicate.socket.get_port()

Sets the data port number for direct socket communication.

return:

port_number: No help available

get_vresource() str[source]
# SCPI: SYSTem:COMMunicate:SOCKet:VRESource
value: str = driver.system.communicate.socket.get_vresource()

Queries the VISA resource string of the socket resource (direct socket communication) .

return:

visa_resource: VISA resource string

set_mode(protocol_mode: ProtocolMode) None[source]
# SCPI: SYSTem:COMMunicate:SOCKet:MODE
driver.system.communicate.socket.set_mode(protocol_mode = enums.ProtocolMode.AGILent)

Sets the protocol operation mode for direct socket communication.

param protocol_mode:

RAW | AGILent | IEEE1174 RAW No support of control messages AGILent Emulation codes via control connection (control port) IEEE1174 Emulation codes via data connection (data port)

set_port(port_number: int) None[source]
# SCPI: SYSTem:COMMunicate:SOCKet:PORT
driver.system.communicate.socket.set_port(port_number = 1)

Sets the data port number for direct socket communication.

param port_number:

To select a free port number, enter 0. To select a specific port number, use the following range. Range: 1024 to 32767