Agilent Technologies 86038A User Manual page 190

Optical dispersion analyzer
Table of Contents

Advertisement

Remote Operation
Example 4: Complete application - RepeatMeas
Processing Measured Data
The event handler for TriggerProgress detects when a sweep is complete
and calls
to process the data. This routine transfers
GetAndSaveRawData
the data, forms the appropriate file name, saves the file, and updates the
statistics for the gain and the group delay. Key to the name of the file is the
groupID, which holds the date string required to make the name unique. If
there are no files in the save directory, groupID will be blank. The groupID
is made progressively more specific – adding date, then time if needed.
The statistics are accumulated in statistics structures called a statsBlock.
There are two forms of the statistics provided – the absolute values, and
the differential from the first sweep. Variables that begin with allTrace
accumulate the absolute values, and variables that begin with deltaTrace
accumulate the delta values.
When all the groups have been acquired, the statistics are written to a
summary file.
Updating ODA Status
Updating the ODA status is completely asynchronously from any
measurement operation. Every 500 ms, StatusTimer wakes up and queries
the ODA to find out what it is doing. This is handled in
StatusTimer_Timer(). In addition, whenever a new status message
appears on the ODA front panel, the NewStatus event handler,
odaClient_NewStatus(), reads the message and displays it for the remote
user as well.
190
Agilent 86038A Optical Dispersion Analyzer, Third Edition

Advertisement

Table of Contents
loading

Table of Contents