
1.12
Operation Manual
© 2005 Prism Media Products Ltd
Revision 1.00
Prism Sound DSA-1 Manager
6
Test Sequence authoring guide
The following sections contain a description of the various
and also a
detailed
.
6.1
Elements of a Test Sequence
This section gives a brief overview of the structure of a DSA-1 Test Sequence. It is recommended
that the reader refer to the listings of the built-in sequences (shipped with this software) which provide
useful examples.
The idea of a Test Sequence is that an operator can select and run a particular set of tests on an
input carrier, and be informed that these have all been accomplished successfully. This gives a high
degree of confidence in a very short time. Any failure is accompanied by an informative message,
after which the whole Sequence can be restarted, or the offending part can be repeated, or that part
can be skipped and the remainder of the Sequence can be run.
Thus Test Sequences are built up from one or more 'Segments'. Each Segment may run successfully
or may fail. The name and number of each Segment is displayed on the DSA-1's display while it is
running, and accompanies any failure message sent from that Segment. The Segment boundaries
are also the only point at which the Sequence can be restarted if partial execution is desired.
The body of each Segment is made up of a number of 'Instructions', 'Labels' and 'Comments'. Each
Segment has a Start Instruction (which includes the name of the Segment), and one or more End
Instructions. A PASS/FAIL flag must be appropriately set before executing the Segment End
instruction, in order to govern whether the Sequence will stop and display a message (FAIL) or carry
on to the next Segment (PASS).
The following example shows a very simple Segment called 'Carrier lock' which FAILS if the selected
DI is unlocked, displaying the message 'No carrier lock'; otherwise the Segment PASSES. It would be
unusual to write a Segment as simple as this, since normally a Segment contains a number of related
tests rather than just one. The operation of the example Segment should be clear to anyone who has
written a computer program in almost any language:
/* Segment 1: tests that carrier is locked */
SEGMENT( 1,'Carrier lock');
SET_FAIL;
TEST_UNLOCK_BIT; JUMP_IF_ZERO(@lock_ok);
MESSAGE( 'No carrier lock '); SEGMENT_END;
@lock_ok:
SET_PASS;
SEGMENT_END;
/*******************************************/
Instructions may appear on lines on their own, or with several on one line separated by semicolons
(';') as in the example above. Instructions may be 'simple', with no parameters, or they may be
'complex' with following parameters enclosed in brackets:
SET_PASS
is an example of a simple Instruction
MEAS_FS_JITTER(6)
is a complex Instruction
Complex Instructions are followed by one or more parameters in brackets, separated by commas.
Parameters may be:
·
Numeric (binary, base 10 or hexadecimal);
·
Text (in single quotes);
·
A Label (without the final colon);
Содержание DSA-1 Manager
Страница 1: ...Operation Manual DSA 1 Manager...