tcp =
tcp ()
¶tcp =
tcp (ipaddress)
¶tcp =
tcp (ipaddress, port)
¶tcp =
tcp (ipaddress, port, timeout)
¶tcp =
tcp (ipaddress, [propertyname, propertyvalue])
¶tcp =
tcp (ipaddress, port, [propertyname, propertyvalue])
¶Open tcp interface.
ipaddress - the ip address of type String. If omitted defaults to ’127.0.0.1’.
port - the port number to connect. If omitted defaults to 23.
timeout - the interface timeout value. If omitted defaults to blocking call.
propname,propvalue - property name/value pairs.
Known input properties:
name value
Numeric timeout value or -1 to wait forever
The tcp() shall return instance of octave_tcp class as the result tcp.
The tcp object has the following public properties:
name assigned to the tcp object
instrument type ’tcp’ (readonly)
local port number (readonly)
remote port number
remote host
status of the object ’open’ or ’closed’ (readonly)
timeout value in seconds used for waiting for data
number of bytes currently available to read (readonly)
Package: instrument-control