HyQuest Solutions Pty Ltd
Point Velocity Display - Model PVD100
©
Copyright
35
Issue 1.00 4 Apr, 2007
Appendix A Capturing a Spin Test
The spin test function allows the user to perform a simple spin test of the meter. The
PVD100
outputs a character string representing the meter count and elapse time. Whenever
the ‘spin test’ measurement begins, the
PVD100
will output through the serial data port a
character string at every contact closure. This character string is of the following format:
nxxx,tttt[cr][lf]
n
=
preamble for indicating contact closure data
xxx
=
number of meter contact closures, transmitted in decimal
(i.e. 001, 002, 003, etc)
, =
delimiter
tttt
=
counts of elapse time measured as 0.00666 second counts
(150 Hz), transmitted in HEX ASCII (i.e. 0-9,A-F)
[cr]
=
carriage
return (ASCII ‘0D’)
[lf]
=
line feed (ASCII ‘0A’)
At the end of the spin test, the
PVD100
sends a final data string that displays the total number
of counts and total time all shown in decimal notation. This format makes it easy to copy the
final total number of counts and total elapse time information onto a form. Total time is
given in seconds and displays the time to a tenth of a second. The format is shown below.
dxxx,ttt.t[cr][lf]
d
=
preamble for indicating spin measurement data in decimal
xxx
=
number of meter contact closures, transmitted in decimal
(i.e.
001,
002,
003,
etc)
, =
delimiter
ttt.t
=
total seconds of elapse time displayed to a tenth of a second
[cr]
=
carriage
return (ASCII ‘0D’)
[lf]
=
line feed (ASCII ‘0A’)
Shown below is an example of both formats, as they would be displayed using the
HyperTerminal
program.
N
Perform ‘Spin Test’
n000,0000
First contact closure
n001,0013
n002,0027
n003,003A
.
.
.
n162,427A
n163,4607
Final contact closure
n163,4736
Data string when “Stop Spin” executed
d163,121.4
Final meter counts and time (in seconds)
A
PVD100
initialization completed