Agilent Technologies 86038B User Manual page 148

Photonic dispersion and loss analyzer
Table of Contents

Advertisement

148
Notice that the loop has a sleep statement, which stops the
program for
100 ms, letting other programs run, and a timeout if nothing
happens for too long. You cannot query a TriggerComplete flag
too soon after requesting a sweep because the flag is not clear
until the sweep actually starts.
This same loop will work for a sweep or a normalization.
You will also have to wait for the initial connect to the PDLA. It
typically takes about five seconds for the connection to be fully
established, you can either check for connectivity each time you
start a block of activity with the PDLA (which is a good idea) or
you can have a similar wait loop. To check for connectivity:
if pdlaClient.Connectivity.Connected == FALSE Then
messageToUser("Lost connection to PDLA, unable to proceed")
return
end if
To open the session and wait for a valid connection:
pdlaClient.Connectivity.Connect()
sleep(5000) \\ wait 5 seconds
loop
sleep(100)
elapsedTime += 100
while elapsedTime < MAX_TIME and pdlaClient.Connectivity.Connected != TRUE
Agilent 86038B Photonic Dispersion and Loss Analyzer, Second Edition

Advertisement

Table of Contents
loading

Table of Contents