Agilent Technologies E5071C Manual page 1103

Hide thumbs Also See for E5071C:
Table of Contents

Advertisement

E5071C
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
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
SCPI.INITiate(1).CONTinuous = True.
1330
key completes the statement:
Enter
key. End
Enter

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents