12-10
Return to
2600S-901-01 Rev. C / January 2008
Section 12: Instrument Control Library
Series 2600 System SourceMeter® Instruments Reference Manual
beeper function and attribute
The beeper generates a beep tone. It is typically used to announce the start and/or completion of a
test or operation.
Function
Generates a beep tone.
Usage
beeper.beep(duration, frequency)
duration
Set from 0.1 to 100 (seconds).
frequency
Set to 453, 621, 987 or 2400 (Hz).
Remarks
• There are four beeper frequencies: 453Hz, 621Hz, 987Hz and 2400Hz. If you set
frequency
to a different value, the closest supported frequency will be selected.
• The beeper will not sound if it is disabled (see
attribute).
• This function is an overlapped command. Script execution will continue and not wait for
the beep to finish. If another beep command is issued before the previous beep finishes,
the first beep will be terminated. The
function can be used to hold up script
execution until the beep command finishes.
Also see
Example
Enables the beeper and generates a two-second, 2400Hz beep:
beeper.enable = 1
beeper.beep(2, 2400)
Attribute
Beeper control (on/off).
Usage
beeperstate = beeper.enable
Reads beeper state.
beeper.enable = beeperstate
Writes beeper state.
Set
beeperstate
to one of the following values:
0
Beeper disabled
1
Beeper enabled
Remarks
• This attribute enables or disables the beeper. Disabling the beeper also disables front
panel key clicks.
• Cycling power enables the beeper. The
reset
function does not affect the beeper state.
Also see
Example
Enables the beeper and generates a two second, 2400Hz beep:
beeper.enable = 1
beeper.beep(2, 2400)
bit functions
Logic and bit operations
The bit functions are used to perform bitwise logic operations on two given numbers, and bit
operations on one given number. Logic and bit operations truncate the fractional part of given
numbers to make them integers.
beeper.beep
beeper.enable