Agilent 86038B Photonic Dispersion and Loss Analyzer,
Second Edition
181
if the message was an error, informational or a warning. To
display the status, insert the following line inside:
Private Sub pdlaClient_NewStatus( …
' Let the user know something happened
lblStatus.Text = Message
End Sub
3 Click the
Run
button, and connect to the PDLA. The first
message you will see is the Connected message. Press
Local
on the PDLA and take a sweep. You will see the progress
messages appearing on the application as the 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, we will trigger a sweep from our application, and when the sweep
completes, we will 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, so we can 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, with a caption
of 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
MessageBox.Show("Can't take a measurement yet - not connected.")
Return
End If
pdlaClient.Measure()
3 Run the software, click
Connect
and wait for the connection
to complete. 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.
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: ......