send_command#

TcpOslServer.send_command(command: str, **kwargs) Dict#

Send command or query to the optiSLang server.

Parameters:
command: str

Command or query to be executed on optiSLang server.

timeout: Optional[float], optional

Timeout to execute command. If not provided, TcpOslServer.timeouts_register.default_value is used.

max_request_attempts: int, optional

Maximum number of attempts to execute command. If not provided, TcpOslServer.max_request_attempts_register.default_value is used.

Returns:
Dict

Response from the server.

Raises:
RuntimeError

Raised when the optiSLang server is not started.

OslCommunicationError

Raised when an error occurs while communicating with server.

OslCommandError

Raised when the command or query fails.

TimeoutError

Raised when the timeout expires.