![CUI AMT203 Скачать руководство пользователя страница 10](http://html1.mh-extra.com/html/cui/amt203/amt203_user-manual_2695884010.webp)
date
page
10/2010
10 of 13
20050 SW 112
th
Ave. Tualatin, Oregon 97062 phone 503.612.2300 fax 503.612.2380 www.cui.com
PART NUMBER:
DESCRIPTION:
AMT203
DEMO KIT USER GUIDE
© 2010 CUI Inc. All rights reserved.
Information in this document is subject to change without notice.
INSTALLATION
The TCL installer is included on the flash drive, as ActiveTcl8.5...exe This should be run to install the TCL
interpreter. After the TCL interpreter is installed, there will be a desktop icon Tclsh8.5, which can be double-
clicked to start a TCL shell. The COMM package needs to be added. To do this simply start a TCL shell and type:
% teacup install comm
The teacup utility will go out over the internet, get the COMM package and install it. It will respond with the version
number if all is well. The package is permanently installed so it is not necessary to repeat this installation.
EXAMPLE #1: RUNNING GETPOS
You must exit HyperTerminal (Hyperterm) before running the following command examples. Be sure
to use the “Safely Remove Hardware” option in the task bar to disconnect the USB line.
There is a folder on the Installation CD called TCL_ABS_work. Copy this folder to the desktop. Start a TCL shell
using the Tclsh85 shortcut and type the following:
% source abs_proc.tcl
% set com [StartCom [last_serial_port]]
% GetPos $com
Figure 7 shows the results of running the command sequence above. Note that if the COM port is other than com3
there will be an error message instead of the file name when setting the com variable. We recommend using [last_
serial_port] instead of com3.
TCL AUTOMATION SCRIPTS
Figure 7: GetPos example