beautypg.com

Vernier LabPro User Manual

Page 53

background image

Revision Date: 08/02/02

LabPro Technical Manual

53

s{12,42,1}
s{3,10,2,0}
s{12,41,0}

{ +2.00000E+00 }

s{12,42,0}

{ +2.00000E+00 }

s{12,41,-2}

{ +2.40160E+00, +5.04500E+00, }

s{12,42,-2}

{ +3.80320E+00, +5.92310E+00, }

s{12,41,-1}

{ +0.00000E+00, +1.00000E+00, }

s{12,42,-1}

{ +0.00000E+00, +1.60000E+01, }

At each transition of the digital inputs, the absolute time and state of the inputs is reported (See Figure 3.)
This command can be run at the same time as analog sampling. The digital inputs are sampled 10,000
times/second. Each time a change in the input bits is found, the time and the new value are written to a
data buffer area. When the data buffer area overflows, data collection is halted and an error message is
sent.

D ig ita l/ S o n ic
( D 1 , D 2 )

Figure 3. Digital Input Measurement

The input lines can only have a value of zero or one. DIG/SONIC1, the return values will be 0 or 1.
DIG/SONIC2 being part of the upper 4-bits of the digital port will produce a 0 or 16. Each transition
stored takes two data point locations – one for final state and one for time.

Example 3: Pulse Measurement
To illustrate its use, both ports will be used to monitor the time each time the photogates are blocked by
the opaque bars on a Vernier Picket Fence.

Host

LabPro

s{0}
s{7}

{ +6.01510E+00, +0.00000E+00, +0.00000E+00, +8.88800E+03, +0.00000E+00,
+0.00000E+00, +0.00000E+00, +0.00000E+00, +0.00000E+00, +0.00000E+00,
+0.00000E+00, +0.00000E+00, +0.00000E+00, +3.30000E+01, +0.00000E+00,
+0.00000E+00, +0.00000E+00}

s{1,1,14}
s{12,41,2,1}
s{12,42,2,1}
s{3,10,2,0}
s{12,41,0}

{ +8.00000E+00 }

s{12,42,0}

{ +8.00000E+00 }

s{12,41,-1}

{ +8.00000E+00 }

s{12,41,-1,0}

{ +2.90216E-02, +1.86400E-02, +1.48272E-02, +1.27016E-02, +1.13012E-02,
+1.02400E-02, +9.50120E-03, +8.80680E-03, }

s{12,42,-1,0}

{ +1.42016E-02, +1.23008E-02, +1.09260E-02, +1.00016E-02, +9.30120E-03,
+8.69040E-03, +8.13120E-03, +7.73720E-03, }

s{12,41, 2,0}

{ +2.80860E+00, +2.85100E+00, +2.88340E+00, +2.91070E+00, +2.93470E+00,
+2.95630E+00, +2.97630E+00, +2.99480E+00, }

s{12,42, 2,0}

{ +2.88840E+00, +2.91500E+00, +2.93850E+00, +2.95990E+00, +2.97960E+00,
+2.99790E+00, +3.01510E+00, +3.03140E+00, }