![C&H Technologies EM405-8 Manual Download Page 11](http://html1.mh-extra.com/html/candh-technologies/em405-8/em405-8_manual_3071135011.webp)
5
2.1.2
Data
The
data
command allows the user to transfer up to 16 kilobytes of data to a running script.
This command is only available over the VXI-11 or raw socket interface. It has no effect if sent
over the scripting socket interface.
data <up to 16K of data>
The command requires a running script that is expecting or polling for data. If such a script is
not running then this command will result in an I/O Error. For details on transferring data
to/from a running script refer to section 3.3.
2.1.3
Halt
The
halt
command is used to stop running scripts. Scripts always run in their own thread
allowing multiple scripts to be run at the same time. The halt command has the following
syntax:
halt <options>
options:
<script>
halt the first script started of the specified name
-l <script>
halt the last script started of the specified name
-nX <script> halt script number x of specified name
-a [script]
halt all scripts or all scripts of the specified name
In addition to running more that one script at a time, the same script can be concurrently run
multiple times, each in its own thread. The system maintains a sequence list indicating the order
in which each instance of a running script was started. Using the
halt
command, the user can
specify the specific instance to halt, based on this start sequence. The system does not maintain
any further details other that the start order. It is up to the user to understand the details of a
specific instance, such as the responsibilities of that instance, and the order in which that instance
was started.
With the
–a
option the user can halt all running scripts of a specified name, by passing the script
name argument or all running scripts within the system by not specifying a script name.
2.1.4
List
The
list
command will return a list of all scripts stored on the system. The result will be output
via the same interface from which the command was sent.
list [options]
options:
-l
show details of each file
-r
show only scripts that are currently running
[script]
if the optional [script] is specified only that script
will be shown