In addition to the configuration file, commands can be sent directly to the driver at any time while it is running, by using the Cascade lsend utility or your own code. This feature might be used by an engineer or supervisor for debugging purposes. The syntax for run-time commands is the same as that used in the configuration file. It consists of the name of the command, followed by a space-separated list of arguments, all enclosed in parentheses, like this:
(command parameter1 parameter2 parameter3 ...)
To use lsend for sending commands to the driver, follow these steps:
[sh]$ nsnames Task Queue Domain Node TaskID ... /dr/cif /dr/cif default 0 19544 ...
[sh]$ lsend /dr/cif /dr/cif>
[sh]$ lsend /dr/cif
/dr/cif> (write Speed 22.5)
/dr/cif> OK
/dr/cif>
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.