Agilent Technologies 86038B User Manual page 192

Photonic dispersion and loss analyzer
Table of Contents

Advertisement

Take Sweep and Transfer Data
192
the Form1_Closing function, and insert the following lines
before terminating the session:
// Unregister our status handler
pdlaClient.NewStatus -= this.NewStatusHandler;
6 Click the
button, and connect to the PDLA. The first
Run
message you will see is the Connected message. Press
on the PDLA and take a sweep. You can see the progress
messages appearing on the application as the measurement
progresses. When you exit the application, it will release the
PDLA.
ll of the PDLA events follow a similar pattern. The most
useful events will be 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.
In this exercise, you will trigger a sweep from the 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, adding an event handler for the TriggerProgress event to
detect when the sweep is finished, and saving 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 starting a measurement:
// Don't do anything if not connected to PDLA
if (pdlaClient.Connectivity.IsConnected() == false)
{
MessageBox.Show("Can't take a measurement yet - not connected.");
return;
}
pdlaClient.Measure();
3
the software, click
Run
complete. Then click
progress on both the PDLA and on the application message
bar.
Add an event handler to TriggerProgress. This involves
declaring the delegate, instantiating the delegate, then
adding and removing the handler from pdlaClient.
Agilent 86038B Photonic Dispersion and Loss Analyzer, Second Edition
and wait for the connection to
Connect
, and watch the sweep
Take Sweep
Local

Advertisement

Table of Contents
loading

Table of Contents