
6.2.2
Installing the Tcl Interpreter on a Windows Machine
To run the source code, you need the Tcl interpreter installed on your Windows machine. The Tcl/Tk language is
not part of the Windows operating system, so it must be downloaded and installed. Fortunately, that is straight-
forward. Download and install Tcl/Tk for windows from the ActiveState web site:
www.activestate.com/
Products/ActiveTcl
Follow the installation instructions. At the conclusion of the installation procedure,
you should have the Tcl/Tk programming language installed and it will be visible as a new desktop icon such as
WISH84.
This only need be done once.
Now you can use the Tcl/Tk interpreter wish to execute the source code, as described in the next section. The
program should run and the instrument GUI appear. Now you can use any editor to modify the code, and then run
the modified code to test it.
6.2.3
Executing the Source Code
To execute the tcl source code, you can use any of the following methods:
•
Execute the command
wish main.tcl
from the DOS prompt command line.
•
Start the
WISH
interpreter and then, in the WISH console window type the command
source main.tcl
•
Set up a file association so that double clicking on
main.tcl
automatically invokes the WISH interpreter
to execute the file. Here’s how you do that:
1. Find
main.tcl
in the directory that contains the source code.
2. Right-click on
main.tcl
.
3. Check that
Opens With
shows WISH84 (or whatever your WISH interpreter is named). If this is
not the case, then:
4. Select
Change
. This brings up the
Open With..
dialogue.
5. Select
Browse
. This brings up a file selector dialogue.
6. Now find the WISH84 icon on your desktop. Right click on the WISH84 icon, select
Properties
to determine the location of the WISH84 program.
7. Copy that location into the previous Browse dialogue.
Now double-clicking on any file with the .tcl suffix will cause it to be executed by WISH.
7
Commands
Cautionary Note
The CTR-201 Curve Tracer is designed to measure device characteristics by applying a voltage and measuring
the resultant current, or vice versa.
Using computer control, the applied voltage or current can be of very short duration. This minimizes the
dissipation in the device and in the curve tracer drive circuitry. Consequently, under normal operation, the curve
tracer can make a sequence of measurements without significant dissipation in the drive circuitry. The software
enforces this by measuring the internal temperature.
When using the API commands detailed below, it is the programmer’s responsibility to ensure that the internal
dissipation is not exceeded. At large output voltage and current, there is considerable dissipation in the drive
amplifier and an excessive temperature may be the result.
The drive amplifier outputs, on the Collector and Emitter output terminals, are capable of output voltages
in excess of +10 to +40 volts, and currents of one ampere. They are not capable of continuous output at these
voltages and currents. These outputs cannot be used as power supplies for continuous output.
If you are developing custom software for a measurement application, we recommend that you use the pro-
vided source code and program in the Tcl language to call the various routines, or use the provided source code
as a guide for programming in a different language.
24
Содержание CTR-201
Страница 11: ... a Forward b Reverse Figure 5 1N3022 Zener Diode 8 ...
Страница 15: ... a Control Settings b Result Figure 9 P Channel MOSFET a Control Settings b Result Figure 10 N Channel JFET 12 ...
Страница 22: ... a Control Settings b Result Figure 18 Lambda Diode Figure 19 Vaccum Tube 19 ...
Страница 24: ...5 Calibration a Ground Point b Attaching to Ground Figure 21 Attaching to the Ground Point 21 ...
Страница 32: ...htb Figure 24 48V Power Enable Disable 29 ...