Open

Opens a socket:
/so$*$cket
A socket is created and connected to the IP port of a remote host. So far SPECTRA supports one open socket only.

The /descriptor qualifier allows you to specify symbol names that store socket descriptors. This option is necessary only, if more than one socket is opened. The usage is illustrated in the second example.

Example 1:

SPECTRA> open/socket/host=hast56/port=3504
SPECTRA> inquire/socket s1 "whatever"char(10)
SPECTRA> close/socket

A socket is connected to a terminal server port. The port has been configured before. The inquire command sends $whatever$ as a prompt string. This saves an additional say command.

Example 2:

SPECTRA> open/socket/des=d1/host=hast56/port=3504
SPECTRA> open/socket/des=d2/host=hast56/port=3505
SPECTRA> inquire/socket/des=d1 s1 "fetch?"char(13)
SPECTRA> inquire/socket/des=d2 s2 "fetch?"char(13)
SPECTRA> close/socket/des=d1
SPECTRA> close/socket/des=d2
SPECTRA> d1 =
SPECTRA> d2 =

Two sockets are opened simultaneously. Their descriptors are stored in the symbols d1 and d2.

Format:
SPECTRA> op$*$en/win_motor_panic

Description:
Opens a window that allows the user to stop all moves. The qualifier can be abbreviated by /win_mp.

Format:
SPECTRA> op$*$en/win_msg

Description:
Opens the window for ONLINE messages and motor positions.

The qualifier /li$*$nes=nl (alias /row$*$s=nl selects the vertical size of the window, nl in [14,40], default 14.

The qualifier /co$*$lumns=nc selects the horizontal size of the window, nc in [10,80], default 40.

The qualifier /ti$*$tle=string sets the title of the message window.