Creating A New Engine - Keysight Technologies N7700 User Manual

Photonic application suite
Table of Contents

Advertisement

4
Automation

Creating a New Engine

54
When writing your own software, it is very useful to start the Client
Software first. Starting the Client Software will start the Server Software
and creates an instance of the "Engine" COM component which handles
the hardware communication. If your self-written software connects to this
engine, you can see changes immediately in the client user interface. This
is extremely useful in the debugging phase.
Finalizing your software, you probably don't need the user interface
anymore. In that case, you can start the server yourself and create an
instance of the engine:
% Connect to Engine Manager
EngineMgr=actxserver('AgServerFSIL.EngineMgr');
% Create a new engine
Engine=EngineMgr.NewEngine;
% Load configuration file
Engine.LoadConfiguration('C:\test.agconfig');
% Activate engine
Engine.Activate;
% Start measurement
Engine.StartMeasurement;
% Deactivate engine
Engine.DeActivate;
% Release the engine and the engine manager
Engine.release;
EngineMgr.release;
Note that you have to activate/deactivate the engine explicitly. If
connecting to an existing engine, this is done by the client. When
activating the engine, communication with the hardware is started.
We recommend to configure your engine initially using the Client Software
and store the configuration using the "Save Configuration" menu. This
example uses the "LoadConfiguration" command to load an .agconfig-file
which has been stored before by the client.
Keysight N7700 Photonic Application Suite, Fast Spectral Loss Engine, User's Guide

Advertisement

Table of Contents
loading

Table of Contents