Command 106 motion detector undersample rate – Vernier LabPro User Manual
Page 58

Revision Date: 08/02/02
LabPro Technical Manual
58
Command 106
Motion Detector Undersample Rate
New in firmware version
6.06227
, this command controls the rate at which motion detector data is
collected while not effecting the rate at which analog data is collecting. This is also known as “Collision
Mode” as an accelerometer can be read at a rate of 1000 per second and a motion detector at a rate of 10
per second. When collecting data this way, data at times between motion samples will have a value of
0.0000. The first motion detector reading is taken after rate points.
Syntax: {106,channel,rate}
Parameter List:
channel
– determines how power is used in LabPro
channel
value
Description
11, 12
Channel to which the motion detector is attached.
rate
– divisor for analog rate set in command 3
rate value
Description
<=0
Invalid
1
Resets the command
2 - 1024
Number of analog samples minus one between motion detector
samples
Return values: No information is returned.
Example 1: Record one motion detector sample every 100 analog points. Collect analog samples for 3
seconds at 1000/second. Put the analog data in list L1, distance data in list L2 and time in list L3.
Computer
Calculator
s{0}
:Send({0})
s{1,1,1}
:Send({1,1,1})
s{1,11,1}
:Send({1,11,1})
s{106,11,100}
:Send({106,11,100})
s{3,0.001,300)
:Send({3,0.001,300})
g
:Get({L1})
g
:Get({L2})
g
:Get({L3})