beautypg.com

Vernier LabPro User Manual

Page 17

background image

Revision Date: 08/02/02

LabPro Technical Manual

17

this would correspond to n=8 and m=10. If n and m are omitted, all events are returned.

12,41,-2,n,m

Requests the start times of each period measurement.

These two values are used to fill in the data table. Since the start times are referenced to the start of the
experiment, the value for the first event should be subtracted from the times to get the first event starting
at time t = 0.

Radiation Monitoring

Radiation counting is also set up using Command 12. It operates much like the photogate mode with the
exception that the data rate set in Command 3 is used to set the counting period.

The following is an example of how to set up radiation counting on DIG/SONIC1:

0

Clear all channels and reset the device

102,-1

Turn power on continuously

1,1,14

Set up one dummy analog channel, if no other analog channels have been assigned

12,41,5

Set count mode for digital input 1

3,30,2000,0

Send trigger information for arbitrarily long experiment unless real analog data is being
collected. This example sets the experiment length for 1000 minutes. The sample rate
determines the count information that is returned as the number of counts per 30
seconds.

Data is polled using:
12,41,0

returns number of available data points. This also is the number of sampling cycles that
have occurred since start.

12,41,-1,m,n

returns data points starting with point m and ending at point n. Data is number of counts
that occurred during a sample period.

Rotary Motion Sensors

Reading data from a Vernier Software & Technology rotary motion sensor is also setup and monitored
using Command 12. LabPro reports the position of the sensor as a number in either low or high resolution.
The command to setup takes this form:

12, channel, 6, scale factor

where the scale factor should be 0 or 1 indicating whether you are in low or high resolution. If you use 0,
the resolution will be 360 counts per rotation of the sensor. If you use 1, the revolution will be four times
as many or 1440.

The following is an example of how to set up a rotary motion sensor on DIG/SONIC1.

0

Clear all channels and reset the device

102,-1

Turn power on continuously

1,1,14

Setup one dummy analog channel, if no other analog channels have been assigned

12,41,6,0

Set rotary motion mode for digital input 1 for low resolution measurements

3,30,2000,0

Send trigger information for arbitrarily long experiment unless real analog data is being
collected. This example sets the experiment length for 1000 minutes. The sample rate
determines the count information that is returned as the number of counts per 30
seconds.

Data is polled using:
12,41,0

returns number of available data points. This also is the number of sampling cycles that
have occurred since start.