LLOYD INSTRUMENTS LTD
UPGRADE NOTES FOR
BATCH TESTING UTILITY
V3.0 ISSUE 3
FOR USE WITH NEXYGEN V4.0/V4.1
PART NUMBER 40/0717
January 2001
LLOYD INSTRUMENTS LTD
12 Barnes Wallis Road
Segensworth East
Fareham
Hampshire
PO15 5TT
Telephone: +44 (0) 1489 486399
Fax: +44 (0) 1489 885118
ISSUED BY TECHNICAL SUPPORT DEPT
Direct phone line +44 (0) 1489 486422
email [email protected]
NEXYGEN BATCH TESTING UTILITY V3
TABLE OF CONTENTS
1.1 General 2
1.2 New Features 2
1.3 Word Report Test Graphs and Titles 2
1.4 Data Backup 4
1.5 Creating Working Files from Master Files 5
1.6 NEXYGEN Zoom Options 5
ISSUE 2.0 INTRODUCTION 1
NEXYGEN BATCH TESTING UTILITY V3
1. BATCH TESTING UTILITY
1.1 General
The main concepts and operation of the Batch Testing Utility V3 Issue 1 is the same as the Batch
Testing Utility V3 Issue 1 so this manual only covers the new features.
Therefore, this manual should be used together with the Batch Testing V2 Issue 3 Manual, part
number 40/0717, March 2000 and the Batch Testing V3 Issue 1 Manual, October 2000.
1.2 New Features
The new features are listed below:-
1 The test graph will be saved to a picture file at the end of every test.
2 The test name will be saved to a text file at the end of every test.
3 Data can be automatically copied to a backup directory at the end of every batch.
4 The post test NEXYGEN Zoom features can be selected.
1.3 Word Report Test Graphs and Titles
At the end of every test, a picture file of the test graph will be created in the C:\ folder together
with a text file of the test name. These files can be automatically used to create a test report
similar to the report shown in the Batch Testing V3 Issue 1 Manual, October 2000. However,
the Word macro has to be modified to that shown below:-
Public Sub BatchReportFinished()
Selection.HomeKey Unit:=wdStory
'start of document
Selection.Find.Execute FindText:="<Overlay>", Forward:=True
If Selection.Find.Found = True Then
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Delete
Selection.InlineShapes.AddPicture FileName:="C:\overlay.wmf", _
LinkToFile:= False, SaveWithDocument:=True
End If
'add overlay graph to document at the code <overlay>
Selection.HomeKey Unit:=wdStory
'start of document
ISSUE 2.0 INTRODUCTION 2
NEXYGEN BATCH TESTING UTILITY V3
For X = 1 To 50
Selection.Find.Execute FindText:="<TestGraph" & X & ">", Forward:=True
If Selection.Find.Found = True Then
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Delete
On Error Resume Next
'allow for no graph
Selection.InlineShapes.AddPicture FileName:="C:\BTGraph" _
& X & ".wmf", LinkToFile:= False, SaveWithDocument:=True
End If
Next
'add graphs to document at the codes <TestGraph1>, <TestGraph2> etc
Selection.HomeKey Unit:=wdStory
'start of document
For X = 1 To 50
Selection.Find.Execute FindText:="<TestTitle" & X & ">", Forward:=True
If Selection.Find.Found = True Then
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Delete
On Error Resume Next
'allow for no text file
Selection.InsertFile FileName:="C:\BTTitle" & X & ".txt", Range:="", _
ConfirmConversions:=False, Link:=False, Attachment:=False
End If
Next
'add text to document where the code <TestTitle1>, <TestTitle2> etc is placed
Selection.HomeKey Unit:=wdStory
'start of document
Selection.Find.Execute FindText:="<AllGraphs>", Forward:=True
If Selection.Find.Found = True Then
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Delete
With Application.FileSearch
FileName = "BTGraph*.wmf"
.LookIn = "C:\"
.Execute
For X = 1 To .FoundFiles.Count
Selection.InlineShapes.AddPicture FileName:="C:\BTGraph" _
& X & ".wmf", LinkToFile:=False, SaveWithDocument:=True
'insert graph
Selection.TypeParagraph
'move down below graph
Selection.InsertFile FileName:="C:\BTTitle" & X _
& ".txt", Range:="", ConfirmConversions:=False, _
Link:=False, Attachment:=False
'insert text
Selection.MoveRight Unit:=wdCell
'TAB to next cell in table
Next
End With
End If
'add graphs and titles to table starting where the code <AllGraphs> is placed
ISSUE 2.0 INTRODUCTION 3
NEXYGEN BATCH TESTING UTILITY V3
ActiveDocument.PrintOut
End Sub
The codes used in the Word report are:-
<AllGraphs> Inserts the graph and name for ALL graphs just performed
<Overlay> Inserts the Overlay Graph for a Batch Report
This overlay contains last tests performed
<TestGraphX> Inserts the graph for test number X
<TestTitleX> Insets the name of the graph for test number X.
or several graphs are to be shown in a report.
1.4 Data Backup
The Backup folder is specified by selecting CONFIGURATION, GLOBAL, MASTERS,
DIRECTORIES as shown below:-
Note that when the archive feature is used (ARCHIVE NOW), the utility will normally create the
archive file in the same folder as the original test file.
ISSUE 2.0 INTRODUCTION 4
NEXYGEN BATCH TESTING UTILITY V3
The folders are specified in the screen shown below
If a Storage folder is specified and the option to create backups is selected, the test file will be
copied to the storage folder at the end of every batch, e.g. after 5 tests. The archive feature will
also create the archive file in the storage folder
The Store feature will always transfer the test file to the storage folder. If the storage folder cannot
be accessed, e.g. no network connection, then a message will be shown to indicate that the folder
cannot be accessed. The archive feature will then archive to the same folder a t he original test and
the store feature will not operate.
1.5 Creating Working Files from Master Files.
If the name given for a working file has already been used, a message will be given to indicate that
this filename cannot be used to prevent the previous data from being overwritten.
1.6 NEXYGEN Zoom Options
A new feature has been added to allow the Zoom feature to be automatically activated.
Select CONFIGURATION, GLOBAL, NEXYGEN to display the screen shown below:-
ISSUE 2.0 INTRODUCTION 5
NEXYGEN BATCH TESTING UTILITY V3
Select the required option. Note that the Zoom Right Option may not be suitable if overlaid
graphs
ISSUE 2.0 INTRODUCTION 6