EasyManua.ls Logo

JDS Uniphase HA9 Series

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
Loading...
Programming Guide 32
Querying Status
This example queries and displays the current attenuation setting.
OPEN "COM2:1200,N,8,1" FOR RANDOM AS #3
PRINT#3, "ATT?"
INPUT#3, A
PRINT A
END
Reading the Status Register
The serial polling function is not supported on any RS232C interface, but the STB? command
can be used to query the status register because it performs the same function as serial
polling.
This example changes the attenuation setting and reads the status register continuously until
the output has settled.
OPEN "COM2:1200,N,8,1" FOR RANDOM AS #3
PRINT#3, "CSB" ' clear status register
PRINT#3, "ATT 40"
DO ' loop until motor settles
PRINT#3, "STB?"
INPUT#3, SR1
LOOP UNTIL (SR1 AND 4 = 4)
PRINT SR1
END
Learn Query (LRN?)
This example demonstrates the use of the query Learn.
OPEN "COM2:1200,N,8,1" FOR RANDOM AS #3
PRINT#3, "LRN?"
INPUT#3, fiber,block,srq_mask,cal,atten,wave
' The above variables can be saved in a data file before quitting the program and then later
' read back and used to restore the attenuator to the same state in ATT mode
' like this....
PRINT#3, "WVL ";wave;";CAL ";cal;";ATT ";atten;";D ";block
' Attenuation mode settings are now restored
END
HA9 and HPM Command Sets
Remote control, operation, and query commands to the attenuator can be sent via the GPIB or
the RS232 interface.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Related product manuals