Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Added: | ||||||||
> > |
| |||||||
Usage:AMC13Tool2.exe [-p | ||||||||
Line: 19 to 21 | ||||||||
interactive mode without establishing communication with any AMC13. Typically the first interactive command would then be "connect" to attach an AMC13. | ||||||||
Changed: | ||||||||
< < | Specifying AMC13 Modules | |||||||
> > | Specifying AMC13 ModulesUse the -c argument to specify AMC13 modules to communicate with. IP Address | |||||||
Changed: | ||||||||
< < | Use the -c argument to specify AMC13 modules to communicate with. The argument may be a numeric
I/P address or the name of a uHAL connection file (see Tutorial![]() | |||||||
> > | The argument after -c may be a numeric I/P address, in the standard form e.g. 192.168.1.120 .
To specify the control hub protocol, append /c e.g. 192.168.1.120/c . _Specify the T2 board (lower)
IP address._ The tool will automatically connect to the address specified + 1 for T1.
If you specify an IP address, you must also tell the tool where to find the IPBus address tables.
You can either set the environment variable AMC13_ADDRESS_TABLE_PATH or use
the -p option on the command line to do this. The path must be the name of a directory containing
the two files AMC13_T1.xml and AMC13_T2.xml. (In the standard source distribution these are symlinks
in the directory ...amc13/etc/amc35 below the top level. In the RPM distribution they are in /opt/cactus/etc/amc13 ).
Connection File
Alternatively you may specify the name of a connection file.
See Cactus Tutorial![]() Running ScriptsA script file may be created with a list of AMC13Tool2 commands. A script may be executed in two ways:
Interactive ModeThe tool will enter interactive mode after executing any scripts specified. A > prompt is displayed. Type h for a list of commands. Type h <command> for detailed help, or h * for detailed help on all commands. Generally, interactive commands consist of a command word followed by optional arguments. The command words are case-sensitive. Each command may have aliases (alternative names) given in parenthesis in the help. Numeric arguments are interpreted as decimal unless prefixed with 0x in which case they are interpreted as hexadecimal. Tab completion and history editing are provided by the GNU readline library. Tab completion is particularly useful for command words and address table entries. Wildcards are permitted in address table entries in certain cases. For example, the command *readT1 stat*ttc*err* will read and display all address table entries matching the expression with wildcards. Wildcards are simple shell-style by default, where * matches any string. An argument may be preceded with the string perl: to force full perl-style regular expression matching.Detailed Command Listhelp (h)Display list of commands. A command name may be given for a longer description of a particular command.quit (q, exit)Exit the program.echoEcho the arguments after the command to the terminal (useful in scripts)sleepDelay execution for the specified time in seconds. Decimal values may be used.connect <module_id>Connect to an AMC13 using the specified IP address or connection file. See section above for details on the syntax.list (fv)List all connected AMC13 modules with firmware version, serial number and IP addresses. The module currently accepting commands is marked with a - character. For example:>list Connected AMC13s *0: SN: 86 T1v: 0211 T2v: 0021 cf: 192.168.1.82 1: SN: 82 T1v: 4007 T2v: 0021 cf: 192.168.1.90 sel <number>Select an AMC13 to accept commands. Specify a number as shown in the output of the list command.readT1 (rv) <address> [<count>]readT2 (rs) <address> [<count>]Read from a register on the T1 or T2 board. <address> may be any of the following:
writeT1 (wv) : Write from AMC13 T1 board writeT2 (ws) : Write from AMC13 T2 board i (en) : Initialize AMC13 Usage: i | |||||||
-- EricHazen - 18 Oct 2014 |
Line: 1 to 1 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Added: | ||||||||||||||||||
> > |
Usage:AMC13Tool2.exe [-p
StartupThe tool make be started with no command-line options, in which case it will immediately enter interactive mode without establishing communication with any AMC13. Typically the first interactive command would then be "connect" to attach an AMC13. Specifying AMC13 Modules Use the -c argument to specify AMC13 modules to communicate with. The argument may be a numeric I/P address or the name of a uHAL connection file (see Tutorial![]() |