Programming Examples

Example 2 - Status Registers and Queues

890

Value=Value-Bit

900

!

910! If MAV is set, then get and display the output que

ue contents

920

!

930

IF Z=0 THEN

940

IF Bit=16 THEN

950

ENTER Att;A$

960

PRINT TABXY(21,18);A$

970

END IF

980END IF

990!

1000 ! If the bit is not set, then display 0

1010 !

1020 ELSE

1030 PRINT TABXY(Xpos,Ypos);"0"

1040

END IF

1050

!

1060

! Set up for the next iteration

1070

!

1080

Bit=Bit DIV 2

1090

Xpos=Xpos+4

1100

UNTIL Bit=0

1110

!

1120

! Now that the status byte is displayed, get the Standar

d Events

1130

! Status Register

1140

!

1150

OUTPUT Att;"*ESR?"

1160

ENTER Att;Value

1170

!

1180

! Set up to display the ESR

1190

!

1200

Ypos=12

1210

NEXT Z

1220

!

1230

! Read and display any messages in the error queue

1240

!

1250

REPEAT

1260

OUTPUT Att;"SYSTEM:ERROR?"

1270

ENTER Att;Value,A$

The SYSTEM:ERROR? query gets the number of the last error in the error queue.

1280

IF Value<>0 THEN PRINT TABXY(21,17);Value,A$

1290

UNTIL Value=0

1300

!

1310

! Clear the Status structure and reenable the interrupt be

fore returning

1320

!

1330

OUTPUT Att;"*CLS"

1340

ENABLE INTR 7

1350

!

1360

RETURN

1370

!

1380

END

134

Page 134
Image 134
Agilent Technologies 8156A manual 134

8156A specifications

Agilent Technologies 8156A is a high-performance optical source offering advanced capabilities for testing and characterizing optical systems. Specifically designed for applications in telecommunications and data communications, the 8156A stands out due to its precision, versatility, and reliability, making it an essential tool for engineers and researchers in the telecommunications industry.

One of the main features of the 8156A is its ability to generate a stable, accurate, and tunable optical signal. This optical source operates across a wide wavelength range, typically from 1260 nm to 1675 nm, covering key regions used in fiber optics. The tunable laser module is particularly beneficial for applications requiring the testing of fiber optic components, systems, and networks, enabling users to specify any wavelength within this range.

The device employs advanced technologies, including distributed feedback (DFB) laser technology, offering low noise and high output power while ensuring minimal phase and frequency jitter. This results in precise measurements that are crucial for evaluating the performance of optical devices. The 8156A also features a built-in optical power meter, allowing for seamless integration and real-time monitoring of optical power levels during testing.

Another significant characteristic of the 8156A is its user-friendly interface, which includes easy-to-read displays and intuitive controls. This design simplifies operation, allowing users to set up tests quickly and efficiently. Additionally, it provides various output options, including single-mode and multi-mode fiber interface compatibility, expanding its usability across different applications.

The 8156A is equipped to handle numerous protocols and systems, including passive optical networks (PON), optical transport networks (OTN), and traditional wavelength-division multiplexing (WDM) technologies. Its agility in adapting to various protocols enhances its role in research and development settings.

Moreover, the device offers a range of automation features, enabling users to script complex measurement sequences, making it an adaptable solution for both laboratory and field environments. Combined with its robust build quality, the Agilent Technologies 8156A optical source not only ensures reliable operation but also provides a long service life, making it a valuable investment for any optical testing application.