12-12 Instrument Control Library Series 2600 System SourceMeters Reference Manual
2600S-901-01 Rev. A / May 2006 Return to Section 12 topics
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 beeper.enable 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
waitcomplete function can be used to
hold up script execution until the beep command finishes.
Also see beeper.enable
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 beeper.beep
Example Enables the beeper and generates a two second, 2400Hz beep:
beeper.enable = 1
beeper.beep(2, 2400)
beeper.beep
beeper.enable