Understanding BeepComp: Activating Operation Completion Tones

Written by

in

In VBA instrument programming, particularly with Keysight E5061B/E5071C Series Network Analyzers, BeepComp (SCPI.SYSTem.BEEPer.COMPlete.STATe) is a command used to turn the instrument’s internal beeper on or off to notify you when a measurement operation is complete.

This is distinct from the VBA Beep command, which sounds a tone through the computer’s speaker. How to Enable/Disable BeepComp in VBA

You control this function using the Keysight COM interface within your VBA code. The command accepts a Boolean (True/False) or integer (1/0) value. 1. Disable the “Beep on Complete”

To disable the beeper, set the SCPI.SYSTem.BEEPer.COMPlete.STATe property to False.

’ Example to Disable BeepComp SCPI.SYSTem.BEEPer.COMPlete.STATe = False Use code with caution. 2. Enable the “Beep on Complete”

To enable the beeper, set the SCPI.SYSTem.BEEPer.COMPlete.STATe property to True.

’ Example to Enable BeepComp SCPI.SYSTem.BEEPer.COMPlete.STATe = True Use code with caution. 3. Reading the Current State

You can read the current state into a variable to check if it is active.

Dim BeepCompState As Boolean BeepCompState = SCPI.SYSTem.BEEPer.COMPlete.STATe Use code with caution. Complete VBA Example

Here is a complete subroutine that disables the beeper before a long measurement and enables it again afterward.

Sub ManageBeeper() ‘ – Assumes ‘SCPI’ is the object pointing to the instrument – ‘ Turn BeepComp OFF (False) SCPI.SYSTem.BEEPer.COMPlete.STATe = False Debug.Print “BeepComp Disabled” ’ … Perform measurements, sweep, etc. … ‘ Turn BeepComp ON (True) SCPI.SYSTem.BEEPer.COMPlete.STATe = True Debug.Print “BeepComp Enabled” End Sub Use code with caution. Key Considerations Default State: The default value is True or ON.

Equivalent Front Panel Setting: System > Misc Setup > Beeper > Beep Complete.

Related Command: You can also control warning beeps using SCPI.SYSTem.BEEPer.WARNing.STATe.

Alternative Command: You can use the standard SCPI string command: :SYSTem:BEEPer:COMPlete:STATe {ON|OFF|1|0}.

If you’d like, I can show you how to incorporate this into a loop to run multiple tests silently, or explain how to create a button in Excel to toggle this setting. Beep statement (VBA) – Microsoft Learn

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *