C&H Technologies EM405-8 Manual - page 14
8
The
–e
argument allows the user to input Lua source to be run immediately. It is different than
interactive mode in that it does not give the user a different command prompt in the scripting
socket and more importantly once the command(s) is complete the Lua state is lost. In other
words, variables, loaded libraries and other constructs that are normally valid from one command
to the next are only available during that one command.
2.1.9 Socket?
The
socket?
command will return an ASCII ‘1’ if the scripting socket interface is available and
an ASCII ‘0’ if not. Further passing the
–p
argument will return the TCP/IP port of the scripting
socket interface. Note that the –p argument will return a port number regardless of whether or
not the scripting socket is available.
socket? [options]
options:
-p
returns the port number of the raw socket interface
It is useful to send the
socket?
command via the VXI-11 or raw socket interface to determine if
the scripting socket interface is available and to determine at which TCP/IP port to connect to it.
2.1.10 Upload
The
upload
command is used to upload a script from a host computer to the EM405-8. An
upload port must be specified.
upload [options]