beautypg.com

Command 1999 sound command – Vernier LabPro User Manual

Page 71

background image

Revision Date: 08/02/02

LabPro Technical Manual

71

Command 1999

Sound Command

This command causes LabPro to vibrate its piezo speaker. The duration and frequency of the tones emitted
from the LabPro’s speaker determine the tune. The time base for the duration and the frequency of the
tones is 100

µ

s.

Syntax: {1999,length

1

,Pd

1

,length

2

,Pd

2

, . . . ,length

N

,Pd

N

}

Parameter List:
length

– indicates the duration or how long the tone will be generated. The possible values are 1 to
255 in 100

µ

sec steps.

Pd

– indicates the period of the tone. The possible values are 1 to 255 in 100

µ

sec steps.

N

– number of tones that can be generated. The possible values are 1 to 32.

Return values: No information is returned. However, the LabPro speaker will produce a tune.

Example 1: Have LabPro play Mary Had a Little Lamb.
Computer

Calculator

s{1999,1}

:Send({1999,1})