633
Chapter 8, Programming The Call Processing Subsystem
Example Programs
Comments for SRQ Example Program
Table 51
Comments For SRQ Example Program
Program Line
Number
Comment
80
When running on an external controller no wait is required. When running on the Test Set’s
internal IBASIC controller a wait is required. The loops have a WAIT statement included
so that only this line need be changed when running on the Test Set’s internal IBASIC
controller.
230
The number of the received data field(s) to be read is passed to the Read_rcdd_data
subprogram as string data. In this example fields 1, 2 and 3 will be read. The order in which
the field numbers are passed dictates the order in which they are printed.
370,380
A dummy variable is required to satisfy the FNOrder function passed parameter list. This is
necessary because IBASIC does not support the OPTIONAL keyword in function and
subprogram passed parameter lists.
2020
Reset the Test Set: *RST
Clear the status reporting system: *CLS
Set up the desired interrupt conditions in the Test Set:
* Standard Event Status Register Group Event register conditions which will set the
Summary Message TRUE if they occur:
Bit 5: Command Error
decimal value = 2^5 = 32
Bit 4: Execution Error
decimal value = 2^4 = 16
Bit 3: Device Dependent Error
decimal value = 2^3 = 8
Bit 2: Query Error
decimal value = 2^2 = 4
32+16+8+4 = 60
Therefore set the Standard Event Enable Register to a value of 60: *ESE 60
* Set the correct Summary Message bit(s) in the Service Request Enable Register to
generate a Service Request (SRQ) if the Summary Message(s) become TRUE.
Bit 7 = Operation Status Register Group Summary Message
decimal value = 2^7 = 128
Bit 5 = Standard Event Status Register Summary Message
decimal value = 2^5 = 32
128+32 = 160
Therefore set the Service Request Enable Register to a value of 160: *SRE 160
2030
Preset the transition filters to pass no transitions. The filters will be set by the functions
FNSet_state and FNOrder. The functions will set the proper filter values to pass the desired
transition.
Summary of Contents for 8920B
Page 10: ...10 ...
Page 16: ...Contents 16 9 Error Messages Index 673 ...
Page 17: ...17 1 Using HP IB ...
Page 48: ...48 Chapter 1 Using HP IB Remote Local Modes ...
Page 49: ...49 2 Methods For Reading Measurement Results ...
Page 61: ...61 3 HP IB Command Guidelines ...
Page 84: ...84 Chapter 3 HP IB Command Guidelines Guidelines for Operation ...
Page 85: ...85 4 HP IB Commands ...
Page 90: ...90 Adjacent Channel Power ACP ...
Page 116: ...116 Configure I O Configure ...
Page 156: ...156 Call Processing ...
Page 185: ...185 System System SYSTem ERRor Returns integer value quoted string ...
Page 242: ...242 Common Command Descriptions ...
Page 251: ...251 5 Advanced Operations ...
Page 377: ...377 7 IBASIC Controller ...
Page 458: ...458 Chapter 7 IBASIC Controller The TESTS Subsystem ...
Page 640: ...640 Chapter 8 Programming The Call Processing Subsystem Example Programs 11280 SUBEND 11290 ...
Page 643: ...643 9 Error Messages ...
Page 672: ...672 ...
Page 682: ...Index 682 ...