restartPort nodeURL portName [portName...]


The restartPort utility restarts the SIAM device service running on the specified node and port. Restarting the service will guarantee that the service is initialized using the current service property values. One or more invocations of the setProperty utility should be followed by restartPort to ensure that new property settings take effect.

For example, to set several property values for the service running on /dev/ttySX11 on the "surface" node:

setProperty surface /dev/ttySX11 powerPolicy=ALWAYS
setProperty surface /dev/ttySX11 defaultSkipInterval=-1
restartPort surface /dev/ttySX11

Also, multiple ports may be specified, e.g.

restartPort surface /dev/ttySX3 /dev/ttySX11 /dev/ttySX15


Option Description Values
nodeURL IP address or host name of SIAM node e.g.,
portName Name of instrument port (or alias) defined in siamPort.cfg /dev/ttyS8, COM1, /dev/tty.KeySerial1

Example output:

restartPort loc /dev/tty.KeySerial1
SIAM version $Name:  $
Restarting service on port /dev/tty.KeySerial1


The following environment variables must be set:

Variable Description Example
JAVA_HOME location of Java installation
/j9, /opt/java/jdk1.3.1, etc.
JAVA Path to JVM command For MMC

For Sun JVM (e.g. linux, win32, mac OS)
SIAM_HOME top of the SIAM directory tree -
SIAM_CLASSPATH Path including all SIAM and supporting classes For MMC

For linux/win32

See Also