EasyManuals Logo

JDS Uniphase HA9 Series User Manual

JDS Uniphase HA9 Series
88 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #48 background imageLoading...
Page #48 background image
Programming Guide 42
PRINT #1, "RESET"
PRINT #1, "GPIBEOS IN LF" ' setting terminating characters to LF
PRINT #1, "GPIBEOS OUT LF"
DIM ATTEN AS SINGLE
DIM WAV AS INTEGER
PRINT #1, "OUTPUT 05;:INP:OFFS 10"
ATTEN = 30.0
WAV = 1550
PRINT #1, "OUTPUT 05;:INP:ATT";STR$(ATTEN);";WAV";STR$(WAV);"NM"
END
Querying Status
This example queries and displays the current attenuation setting:
OPEN "GPIB0" FOR OUTPUT AS #1
OPEN "GPIB0" FOR INPUT AS #2
PRINT #1, "ABORT"
PRINT#1, "GPIBEOS IN CR LF"
PRINT#1, "GPIBEOS OUT CR LF"
PRINT #1, "OUTPUT 05;ATT?"
PRINT #1, "ENTER 05"
INPUT #2, A
PRINT A
END
Serial Polling the Status Register
This example changes the attenuation setting and reads the status register continuously until
the output has settled:
OPEN "GPIB0" FOR OUTPUT AS #1
OPEN "GPIB0" FOR INPUT AS #2
PRINT #1, "ABORT"
PRINT#1, "GPIBEOS IN CR LF"
PRINT#1, "GPIBEOS OUT CR LF"
PRINT #1, "OUTPUT 05;CSB" ' clearing the status byte clears the settling bit
PRINT #1, "OUTPUT 05;ATT 0.3456e2" ' change the attenuation to 34.56 dB
sr = 0 ' initialize sr variable to enter the while loop
DO ' loop until settled bit is true
PRINT #1, "SPOLL 05" ' serial poll the attenuator
INPUT #2, sr
LOOP UNTIL (SR AND 4 = 4)
PRINT sr ' print final value of sr
END
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the JDS Uniphase HA9 Series and is the answer not in the manual?

JDS Uniphase HA9 Series Specifications

General IconGeneral
BrandJDS Uniphase
ModelHA9 Series
CategoryControl Unit
LanguageEnglish

Related product manuals