User`s guide

188 VEE User’s Guide
4 Analyzing and Displaying Test Data Chapter
Using MATLAB Script in Agilent VEE
VEE includes the MATLAB Script object, which gives you access
to the functionality of MATLAB. VEE can pass data to the
MATLAB Script Engine and receive data back, enabling you to
include MATLAB mathematical functions in VEE programs.
Some uses of the MATLAB Script object include:
Letting MATLAB operate on VEE- generated data.
NOTE
If you already have MATLAB installed, VEE will use your installed
MATLAB to process MATLAB Script. However, if you do not have the
Signal Processing Toolbox, you will not be able to use those functions
from VEE unless the MATLAB Script Engine that ships with VEE is
registered. To register MATLAB, change directory (CD) to
<VEE_installation_dir>\MATLAB\bin and execute
MATLAB.exe /regserver.
NOTE
A few notes about troubleshooting VEE MATLAB installations. First, VEE
will always append the MATLAB Script directory path (~installDir\matlab\
bin\win32) to the end of the PATH environment variable for the active VEE
session. This means that any installed MATLAB will take precedence over
the MATLAB Script that comes with VEE and that, when VEE tries to do a
LoadLibrary on libeng.dll and libmx.dll, it will get the first one it finds in the
PATH. A MATLAB install will normally modify the path to put in the
location of where the matlab.exe, libeng.dll and libmx.dll are located.
Caution, the version of libeng.dll and libmx.dll must match the version of
MATLAB that is registered via COM.
The version of MATLAB that is loaded is the last one to register, which is
typically the last version of MATLAB to run (MATLAB re-registers itself
every time it runs). So where you can get into problems is if you have full
6.1 and full 6.5 installed on your system. Whichever MATLAB that you
want to run VEE against needs to be registered last and more importantly
the path to its [matlabroot\bin\win32] directory has to be in the path
before the other MATLAB version.