Other topics about Introduction to VBA Programming
The E5061B VBA environment provides COM objects that support the E5061B control. This section provides an overview of COM objects as well as considerations for using the E5061B's COM objects.
The definitions and specifications of COM are beyond the scope of this guide. Such in-depth information is covered in various books on COM.
When you control the E5061B through the macro function, you can use COM objects as components of your application. The functionality of the E5061B's COM objects is exposed through properties and methods.
A property allows you to read or write a setting or attribute of an object. With the E5061B, you can use properties to set or read the settings of the E5061B.
You can find properties in the list of object types in COM Object Reference.
A method allows you to manipulate an object in a particular way. With the E5061B, you can use methods to perform specific tasks.
You can find methods in the list of object types in COM Object Reference.
An event means an operation from outside that the program can recognize such as clicking a mouse. The E5061B detects events when a specific softkey is pressed using the UserMenu_OnPress(ByVal Key_id As Long) procedure to execute the assigned procedure.
You can find events in the list of object types in COM Object Reference.
When you want to control the E5061B, you can use COM objects alone or in conjunction with SCPI commands and the Parse object. The latter method is a little slower than the former method because the Parse object is used to parse the messages of SCPI commands. For instructions on using the E5061B's VBA Editor to create a program that uses COM objects, refer to Operation Basics of the E5061B's VBA.
While the control using SCPI commands allows SRQ (Service Request) interruptions through the status reporting mechanism, the control using COM objects does not support SRQ interruptions. Instead of SRQ interrupts, you can use the WaitOnSRQ object to suspend the program until the E5061B is placed into the desired state.