Agilent Technologies 86082A User Manual page 188

Wavelength domain component analyzer
Table of Contents

Advertisement

Status byte command form
If you wish to use the status byte form of the command, the most efficient
approach is to enable the extended status byte mask to reflect the OPC bit
through to the main status register. The main status register can be read with
a serial poll, which is a bus-level operation. Serial poll executes far faster than
a command transaction with the WDCA.
An example using serial poll is:
' enable the OPC bit to reflect through to main status byte
sendCommand inst, "*ESE 1"
sendCommand inst, ":SENSe:STARt 1520 nm;:SENSe:STOP 1525 nm;:INITiate:IMMediate;
*OPC"
' Talk to other instruments, and so on, until you want to check on sweep
value = serialPoll(inst)
' if bit 5 is set, the sweep is done
if (value & 32) then
'sweep is done, read status register to clear condition
sendCommand inst, "*ESR?")
value = readIntReply(inst)
end if
where:
• serialPoll is a routine written in your favorite language using your favorite in-
terface to perform a serial poll.
*WAI Command
The other synchronization command provided is *WAI. This command is iden-
tical to *OPC, but there is no external indication that the command is complete.
It forces the instrument to finish the commands received prior to the *WAI
command before executing the subsequent commands.
To take a sweep and transfer data as quickly as possible, you could:
' configure ascii binary transfer. FORM BIN,32 is faster, but harder to convert
sendCommand inst, "FORM ASCII"
sendCommand inst,
":SENSe:STARt 1520 nm;:SENSe:STOP 1525 nm;:INITiate:IMMediate;*WAI;TRACe:DATA:
Y? TRA"
Call readAsciiTrace(inst, trace)
where:
• readAsciiTrace is a routine written in your favorite language using your favorite
interface to read the ascii data and convert it into an array.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Remote Operation
Introduction to Controlling an WDCA
5-13

Advertisement

Table of Contents
loading

Table of Contents