FILE UTILITY
Introduction
The
File Utility allows you to perform a wide
variety of data file tasks. You may list, print
* (see bottom of
page), create, and edit .IMP impedance files. While this utility is
quite adequate for its intended task, it's
not a
full featured word processor; it doesn't have features like "search and
replace," etc.
File Utility Menu
When you choose "
(2) File Utility" from the
Main
Menu, either by pressing "
2," or by using
the "
F2" function key, you'll enter the
File
Utility Menu. The screen display will look as follows:
File
Utility Menu |
|
| (1) List File * |
| (2) Print Logfile * |
(3) Create File
|
(4) Edit File
|
(5) Delete File
|
| (6) Directory |
| (7) Main Menu |
|
| Choose (1 - 7) ? |
* Windows
Print: Use (1) List File, then 'Mark' & 'Copy' into Clipboard.
* Print Logfile (2) will direct output to Logfile.txt in the \mwdata1 sub-directory.
If you choose the
option to 'Print Logfile,' the data will be directed to 'Logfile.txt'
within the \mwdata1 sub-directory, and not to the screen. Right-click
on 'Logfile.txt' to print it, and then DELETE the file; it will
re-create when next needed.
You may make a selection from the
File Utility Menu
by entering a number from 1 to 7. You
don't have to
press
<Enter>; these are
hot
keys and will immediately
do what you
want.
Listing, Printing, and Deleting Files
These three file operations are
identical in that
you are asked
one simple
question:
Filename ? _
Listing
If you want to
list
the
TRL3 data (demo) file that exists in the
\mwdata1 data sub-directory, simply choose "
(1) List File,"
then type
TRL3, and press
<Enter>.
Printing.
To print from within a DOS Window,
follow the directions given on-screen and at the
bottom
of this page.
Deleting.
Simply choose "
(5) Delete File" and press
<Enter>.
Directory Listings
By choosing "
(6) Directory," and pressing
<Enter>,
you will see a list of
all .IMP data files within
the \mwdata1 data sub-directory. Initially, the
only
files you will have will be ones that we've included for demo purposes.
Creating
a .IMP Data File
When you choose "(
3)
Create File,"
and press
<Enter>, you'll see the
following:
Note 1: Max #
lines = 10.
Note 2: Enter data in F <space> R
<space> X format.
Example:
1300 34 -45
or
16500 120 6.5
Note 3: F and/or R CAN'T be <=
zero!
Enter line # 1 : ?_ |
The
maximum number of lines
allowed in a .IMP file is
10, and there
must
be
three entries on each line, each separated by
one
space.
The basic unit set for .IMP files is MHz and Ohms.
In the
above,
the 1st example entry represents a frequency of 1300 MHz and the
impedance is Z = 34 - j45 ohms. On the 2nd line we show an example
entry of 16500 MHz and Z = 120 + j6.5 ohms.
Let's create a small .IMP file and save it.
At the
Enter
line # 1 : ?_ prompt above, type
950 100 0
so the line looks like:
Enter line
# 1 : ?_ 950 100 0
Press
<Enter>
to
complete the data line entry, and then type in a
second line as shown below:
Enter line
# 2 : ?_ 1050 100 0
Press
<Enter>
to
complete the data line entry.
Enter line
# 3 : ?_
O.K., now to
save this
two-line data file. At the end of "
Enter line #3,"
above, just hit
<Enter> again,
a
2nd time, w/o typing any data. This
extra<Enter> tells
SmithMatch
you are done. You will now be asked:
Filename ? _
Let's name this file
TWOFREQ.
Please type the following at the prompt:
Filename ? _ TWOFREQ
Press
<Enter> to
complete
the data line entry.
You'll see a message on-screen telling you that the file is being saved
and then you'll be returned to the
File Utility Menu.
As you see, its
very simple to create a .IMP data
file!
Please also note that
frequency
data
MUST be entered in
ascending
order, i.e., from
low to
high,
and that the
maximum number of lines in a file is
10.
Editing Files
When you choose "
(4) Edit File" from the
File
Utility Menu, either by pressing "
4" or by
using the "
F4" function key, you'll see the
following:
Filename
[<Enter>=Quit] ? _
Let's edit the short two-line .IMP data file we've just created. Type
TWOFREQ
to edit the file. Here is what you should see on the screen:
Filename
[<Enter>=Quit] ? _ TWOFREQ
Press
<Enter>
to
complete the data line entry. Now you'll see:
Filename: TWOFREQ
# Lines
: 2
Line # 1
950 100 0
Line #
2 1050 100 0
Edit Command[<Enter>=Quit]
? _ |
You'll notice that the "
Function Key
Menu" at the bottom of the screen gives you six choices:
F1
= List,
F2 = Delete,
F3 = Insert,
F4 = Replace,
F5 = Save, and
F6
= Quit.
When editing
any file, its
always
a good idea to choose "
F1 = List" first. However, in
this case, given that we only have
two lines in the
file, well' ll
pass on this. So, choose "
F3
= Insert," to insert an
additional data
line, by pressing the "
F3" function key.
You'll be asked just where in the file you want to insert the new line:
Max #
lines = 10
Insert line between (A,B): ?
_
In the above, "
A" and "
B"
represent the line #'s just
above, and just
below,
where you want to make the new entry.
If you want to
insert a new line at the
top
of the file, enter "
0,1" to tell
SmithMatch
that the line is to go just
before the first line.
By the same token, if you want to
insert a new line
at the
bottom, and there are only
two
lines in the file, as is the case here, you would type "
2,3"
to add the new line in 3rd position just after line 2. Here, let's add
a line in the
middle. Type the following after the
prompt:
Insert
line between (A,B): ? _ 1,2
Enter the following after the prompt:
Enter
new data line: ? _ 1000 100 0
Press
<Enter>
to
complete the data line entry. You'll see a
listing of the file showing that the line has been inserted in the
middle.
Filename: TWOFREQ
# Lines
: 3
Line # 1
950 100 0
Line
# 2 1000 100 0
Line
# 3 1050 100 0
Edit Command[<Enter>=Quit]
? _ |
To
delete the line, press the "
F2 = Delete"
function key at the
Edit Command prompt,
or
type "
2" and press
<Enter>.
Note that, in keeping with the data file entry convention, the
frequency of the
new data line was entered in
ascending
order.
You'll be asked:
Line # ?
_
Type "
2" and press
<Enter>.
The new line will be deleted and you'll again see:
Filename: TWOFREQ
# Lines
: 2
Line # 1
950 100 0
Line #
2 1050 100 0
Edit Command[<Enter>=Quit]
? _ |
We wanted to show you how to
edit a file, but we'll
also
save it so we can use this two-line file in an
example to follow.
Enter a "
5" or Press "
F5 = Save"
to save this file. When asked for a name, enter
TWOFREQ.
Now, choose "
F6" to return to the
File
Utility Menu, and then "
F6" again to reach
the
Main Menu.
To print to either a parallel port, or a USB printer in Windows, from
within a program running in a small DOS window, you must first copy the
data in the Windows Clipboard. There are two ways to do this:
Method #1:
To print via Windows Paint, Wordpad, or Microsoft Word, from a small
DOS window, use the two icons on the left, at the top. First, press
'Mark,' then left-click & drag the white cursor to highlight all
the data you wish to transfer to the Clipboard. Now, with the data
highlighted, press 'Copy' to paste in to the application of your
choice, from which you may print.
Method #2:
To print via Windows Notepad, press the 4th icon from the left, at the
top of the small DOS window, marked 'Full screen.' Now, press 'Alt +
Print Scrn' to transfer the data to the clipboard. To return to the
original small DOS window, press 'Alt + Enter.' Open Windows Notepad,
press 'Edit' and then 'Paste.' Now you can print.
<
BACK 1 23 4 56 7 89 10 11 12 13 14 15 16
17 18 19 20 21 NEXT >
You are on Page 9