4
Automation
Connecting to an Existing Engine
NOTE
56
Use the following code to connect to an existing engine:
% Connect to Engine Manager
EngineMgr=actxserver('AgServerFSIL.EngineMgr');
% List all Engines currently running
EngineIDs=EngineMgr.EngineIDs;
% Always connect to first engine
Engine=EngineMgr.OpenEngine(EngineIDs(1));
% Start measurement
Engine.StartMeasurement;
% Release the engine and the engine manager
Engine.release;
EngineMgr.release;
In most of the following MATLAB examples, we assume that the engine
has been created and activated before.
Keysight N7700 Photonic Application Suite, Fast Spectral Loss Engine, User's Guide