EasyManua.ls Logo

Agilent Technologies E5071C - Page 1103

Agilent Technologies E5071C
2685 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
E5071C
1330
Line 200
Stores the contents of the q array (Variant) into the x variable (Integer).
Line 230
Uses the first element of the x array as the tentative maximum value.
Line 260
Compares the tentative maximum value with each of elements that follow;
if an element is larger than the tentative maximum value, then that
element is used as the tentative maximum value.
Line 290
Uses a message box function to display the maximum value. For a
complete list of functions supported by VBA, see VBA Online Help.
• The above sample program consists of a single procedure
contained in a single module. However, when you deal with
procedures and variables across multiple modules, you should
be aware of the scope of variables and procedures.
Auto-complete Feature
When you use COM objects in Visual Basic Editor, the editor's auto-
complete feature allows you to easily type in keywords without misspelling
them.
The following procedure assumes that you are entering the
SCPI.INITiate(Ch).CONTinuous object.
1. In a standard module, type sub main and press the Enter key. End
Sub is automatically added.
2. Typing scpi followed by a dot (.) brings up a list of classes under the
SCPI class.
3. Typing in automatically moves focus to INITiate in the list box.
4. Typing ( brings up a list of indexes.
5. Typing 1). brings up a list of classes under the INITiate class.
6. Typing c automatically moves focus to CONTinuous in the list box.
7. Typing = brings up a list box for setting a Boolean value (True/False).
8. Typing t automatically moves focus to True.
9. Pressing the Enter key completes the statement:
SCPI.INITiate(1).CONTinuous = True.

Table of Contents