Agilent Technologies 86038B User Manual page 172

Photonic dispersion and loss analyzer
Table of Contents

Advertisement

172
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
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
to complete. Then click
progress on both the PDLA and on the application message
bar.
4 Add an event routine for
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
Agilent 86038B Photonic Dispersion and Loss Analyzer, Second Edition
function, and insert the
pbSweep_Click
and wait for the connection
Connect
, and watch the sweep
Take Sweep
.
TriggerProgress

Advertisement

Table of Contents
loading

Table of Contents