172
Agilent 86038B Photonic Dispersion and Loss Analyzer, Second Edition
measurement progresses. When you exit the application, it
will release the PDLA.
All of the PDLA events follow a similar pattern. The most useful
events are TriggerProgress, which tells you when a
measurement or normalization is complete, and
TLSSettlingProbability, which warns you how long until the
laser needs to perform a temperature settling.
Take Sweep and Transfer Data
In this exercise, you will trigger a sweep from your application,
and when the sweep completes, transfer the data across and
save it in a file. This consists of adding a button to trigger the
sweep, and adding an event handler for the TriggerProgress
event, to detect when the sweep is finished and save the data in
C:\mydata.txt.
1 Add a button to the UI and Name it pbSweep, Caption Take
Sweep.
2
Double click the button to go to the
pbSweep_Click
function, and insert the
following lines to make sure you are connected before actually taking a
measurement:
' Don't do anything if not connected to PDLA
If pdlaClient.Connectivity.IsConnected = False Then
MsgBox ("Can't take a measurement yet - not connected.")
Exit Sub
End If
pdlaClient.Measure
3 Run the software, click
Connect
and wait for the connection
to complete. Then click
Take Sweep
, and watch the sweep
progress on both the PDLA and on the application message
bar.
4 Add an event routine for
TriggerProgress
.
The TriggerProgress event has two pass parameters -
enumStatus and enumAcquisitionMode. This indicates the
status and progress of the current activity.
This function checks the enumAcquisitionMode to determine
the type of trigger event (that is, measurement,
normalization, TLS settling and so on) and then checks the
enumStatus to see if the event is finished, indicating data is
available. If so, call sendDataToFile().
In the Source Code window, select pdlaClient in the Object
Selector in the upper left hand corner of the window, then
select TriggerProgress in the Method Selector in the upper
right hand corner. This takes you to the sub
Summary of Contents for 86038B
Page 1: ...Agilent 86038B Photonic Dispersion and Loss Analyzer User s Guide ...
Page 4: ...4 ...
Page 20: ...20 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition ...
Page 34: ...34 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition Figure 2 b Rear Panel ...
Page 78: ...78 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition ...
Page 92: ...92 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition ...
Page 202: ...202 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition End Sub ...
Page 348: ...348 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition ...
Page 349: ......