Apex Digital 16 series Automobile Parts User Manual


 
20
Sending a Simple Script File to HyperTerminal®
It is sometimes desirable to capture data for an extended period of time. Standard streaming mode
information is useful for short term events, however, when capturing data for an extended period of
time, the amount of data and thus the le size can become too large very quickly. Without any special
programming skills, the user can use HyperTerminal and a text editing program such as Microsoft Word
to capture text at user dened intervals.
1. Open your text editing program, MS Word for example.
2. Set the cap lock on so that you are typing in capital letters.
3. Beginning at the top of the page, type A<Enter> repeatedly. If you’re using MS Word, you can tell how
many lines you have by the line count at the bottom of the screen. The number of lines will correspond
to the total number of times the ow device will be polled, and thus the total number of lines of data it
will produce.
For example: A
A
A
A
A
A
will get a total of six lines of data from the ow meter, but you can enter as many as you like.
The time between each line will be set in HyperTerminal.
4. When you have as many lines as you wish, go to the File menu and select save. In the save dialog
box, enter a path and le name as desired and in the “Save as Type” box, select the plain text (.txt)
option. It is important that it be saved as a generic text le for HyperTerminal to work with it.
5. Click Save.
6. A le conversion box will appear. In the “End Lines With” drop down box, select CR Only. Everything
else can be left as default.
7. Click O.K.
8. You have now created a “script” le to send to HyperTerminal. Close the le and exit the text editing
program.
9. Open HyperTerminal and establish communication with your ow device as outlined in the manual.
10. Set the ow device to Polling Mode as described in the manual. Each time you type A<Enter>, the
meter should return one line of data to the screen.
11. Go to the File menu in HyperTerminal and select “Properties”.
12. Select the “Settings” tab.
13. Click on the “ASCII Setup” button.
14. The “Line Delay” box is defaulted to 0 milliseconds. This is where you will tell the program how often
to read a line from the script le you’ve created. 1000 milliseconds is one second, so if you want a line
of data every 30 seconds, you would enter 30000 into the box. If you want a line every 5 minutes, you
would enter 300000 into the box.
15. When you have entered the value you want, click on OK and OK in the Properties dialog box.
16. Go the Transfer menu and select “Send Text File…” (NOT Send File…).
17. Browse and select the text “script” le you created.
18. Click Open.
19. The program will begin “executing” your script le, reading one line at a time with the line delay you
specied and the ow device will respond by sending one line of data for each poll it receives, when it
receives it.
You can also capture the data to another le as described in the manual under “Collecting Data”. You
will be simultaneously sending it a script le and capturing the output to a separate le for analysis.