Programming Examples

Example 2 - Status Registers and Queues

340 PRINT TABXY(4,10);" ^ ^ ^ ^ ^ ^ ^ ^"

350PRINT TABXY(4,11);" +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"

360PRINT TABXY(4,12);" : : : : : : : : :"

370PRINT TABXY(4,13);" +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"

380PRINT TABXY(4,14);" PON URQ CME EXE DDE QYE RQC OPC"

390PRINT TABXY(40,12);"Standard Event Status Register"

400PRINT TABXY(4,16);"Last Command :"

410PRINT TABXY(4,17);"Last Error :"

420PRINT TABXY(4,18);"Output Queue :"

430!

440! Start the program loop and enable the interrupt for the errors

450!

460Ende=0

470GOSUB Pmm_srq

480ENABLE INTR 7;2

490!

500! The Central Loop

510!

520REPEAT

530INPUT "Command ? ",Inp$

540GOSUB Pmm_srq

550OUTPUT Att;Inp$

560PRINT TABXY(21,16);"

"

570PRINT TABXY(21,16);Inp$

580WAIT 1.0

590UNTIL Ende=1

600GOTO 1380

610!

620!----------------------------------------------------

630Pmm_srq: ! Interrupt Handling Subroutine to display the

640! status and the error and output queues

650!----------------------------------------------------

660!

670! Get the value for the Status Byte

680!

690Value=SPOLL(Att)

700!

710! Initialize and start the display of the registers

720!

730PRINT TABXY(21,17);"

"

740 PRINT TABXY(21,18);"

"

750 Ypos=3

760FOR Z=0 TO 1

770Bit=128

780Xpos=7

790!

800! Do it for each bit

810!

820REPEAT

830Quot=Value DIV Bit

840!

850! If the bit is set then display 1

860!

870IF Quot>0 THEN

880PRINT TABXY(Xpos,Ypos);"1"

133

Page 133
Image 133
Agilent Technologies 8156A manual 133

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.