4-7
Remote Control
Setting up a Measurement
that handles some error conditions more gracefully than VB collections.
TEScollections are close enough to Visual Basic collections that the items
within the TEScollection can be accessed as described in
.
Once the tests and test group have been setup, the collection is built with the
setup_testplan
subroutine.
The final step in obtaining the parameter collections is to set a local collection
equal to the TES System parameter collection, the Test Plan parameter collec-
tion, and the Test Group collection to set TEScollections equal to the individ-
ual item collections in the Test level TEScollection of TEScollections. That last
assignment is illustrated by the following statement:
Set TEScolTestGainPhaseParms = colTestParms("Test_Gain_Phase")
There is one such member for each Test in the collection of Tests to be run.
Example for obtaining collections for a given test group
‘This line returns the active system, i.e. HP 86037B
m_sActiveSystem = m_oController.ActiveSystem
‘This line sets the active test plan, always “Standard_Test_Plan”
m_sActiveTestPlan = "Standard_Test_Plan"
‘These 2 lines clear the collection
Set m_colTestsToRun = Nothing
Set m_colTestsToRun = New Collection
‘These 2 lines add the TES Tests to be edited to the collection
add_test "Test_Gain_Phase"
add_test "Test_Length"
‘This sets the Test Group for the 'variables to be edited
m_sActiveTestGroup = "Start_Test"
‘The complete code for this subroutine 'is given below
setup_testplan
‘This obtains the test parameters from ‘testparm.mdb
m_oController.LoadParms "", "", "", ""
‘The first three collections are Visual Basic collection objects
Set colCDSystemParms = m_oController.m_colSystemParms
Set colTestPlanParms = m_oController.m_colTestPlanParms
Set colStartTestGroupParms = m_oController.m_colTestGroupParms
‘This is a TEScollection or a collection of collections.
Set colTestParms = m_oController.m_oTestParms
Set TEScolTestGainPhaseParms = colTestParms("Test_Gain_Phase")
Содержание 86037B
Страница 1: ...User s Guide HP 86037B Chromatic Dispersion Test System ...
Страница 31: ...2 13 Operation The Main Window Figure 2 4 Repeat Measurement Selector ...
Страница 72: ...3 16 Normalization Setting Normalization Preferences ...
Страница 94: ...4 22 Remote Control TES Parameters Main chromatic dispersion screen ...
Страница 100: ...4 28 Remote Control TES Parameters CD and Gain Measurement Settings Dialog Box ...
Страница 102: ...4 30 Remote Control TES Parameters Length Measurement Settings Dialog Box ...
Страница 104: ...4 32 Remote Control TES Parameters Normalization Settings Dialog Box ...
Страница 106: ...4 34 Remote Control TES Parameters New Normalization Button Dialog Box ...
Страница 120: ...4 48 Remote Control Output Parameters ...
Страница 158: ...5 38 Maintenance Hewlett Packard Sales and Service Offices ...
Страница 165: ...6 7 Installation Installation 2 3 4 5 1 8 7 Fan Pack 6 6 Power Distribution Assembly 1 7 Power Distribution Assembly 2 ...
Страница 170: ...6 12 Installation Installation ...
Страница 174: ...7 4 Reference Theory of Operation Figure 7 3 HP 86037B Block Diagram Options 121 and 122 ...
Страница 175: ...7 5 Reference Theory of Operation Figure 7 4 The HP 86037B Option 114 block diagram ...
Страница 190: ...7 20 Reference System Options ...
Страница 191: ...8 Specifications 8 3 Regulatory Information 8 7 Specifications and Regulatory Information ...
Страница 198: ...8 8 Specifications and Regulatory Information Regulatory Information Declaration of Conformity ...
Страница 204: ...Index 6 Index ...