JDS Uniphase HA9 Series User Manual page 50

Extended range programmable optical attenuator
Table of Contents

Advertisement

' Like this...
PRINT#1, "OUTPUT 05;WVL " ; wave ; ";CAL "; cal ; ";ATT " ; atten ;";D " ; block
' Attenutor settings are now restored in ATT mode
END
Sending Queries
This example queries the attenuation and the state of the beam block:
OPEN "GPIB0" FOR OUTPUT AS #1
OPEN "GPIB0" FOR INPUT AS #2
PRINT #1, "ABORT"
PRINT #1, "RESET"
PRINT #1, "GPIBEOS IN LF"
PRINT #1, "GPIBEOS OUT LF"
DIM RESPONSE AS STRING
' Set attenuation to 20 and the state of the beam block to 0 (this turns the beam block on).
PRINT #1, "OUTPUT 05;:INP:ATT 20;:OUTP:STAT 0"
Query device
PRINT #1, "OUTPUT 05;:INP:ATT?;OUTP:STAT?"
PRINT #1, "ENTER 05"
INPUT #2, RESPONSE
PRINT RESPONSE
END
' "20.0000; 0" is displayed on the screen
Setting the User Slope
This example demonstrates setting the user slope to match the HA9 attenuator to a power
meter. It is not specific to a particular power meter.
OPEN "GPIB0" FOR OUTPUT AS #1
OPEN "GPIB0" FOR INPUT AS #2
PRINT #1, "ABORT"
PRINT #1, "RESET"
PRINT #1, "GPIBEOS IN LF"
PRINT #1, "GPIBEOS OUT LF"
PRINT #1, "OUTPUT 05;*RST"
PRINT #1, "OUTPUT 05;:UCAL:USRM OFF"
PRINT #1, "OUTPUT 05;:STAT:OPER:NTR 2"
PRINT #1, "OUTPUT 05;:INP:ATT 10"
DO
PRINT #1, "OUTPUT 05;:STAT:OPER:EVENT?"
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
' setting terminating characters to LF
' setting terminating characters to LF
' change attenuation setting
' wait in loop until attenuator settles
Programming Guide – 44

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents