How To Use Xps .Net Assembly From Matlab; Add Reference To .Net Assembly; Matlab Code Source - Newport XPS Programmer's Manual

Xps unified series universal high-performance motion controller/driver
Hide thumbs Also See for XPS:
Table of Contents

Advertisement

XPS Unified
EDH0373En1023 — 01/18
3.6

How to Use XPS .NET Assembly from Matlab?

Refer to
Matlab
depending on your Matlab version.
3.6.1

Add Reference to .NET Assembly

% Make the assembly visible from Matlab
asmInfo = NET.addAssembly('Newport.XPS.CommandInterface')
3.6.2

Matlab Code Source

Create an Instance
% Make the instantiation myxps=CommandInterfaceXPS.XPS();
Open XPS Connection
% Connect to the XPS controller
code=myxps.OpenInstrument('192.168.254.254',5001,1000);
Call XPS Functions
% Use API's
[code Version]=myxps.FirmwareVersionGet [code]=myxps.GroupKill('Group1')
[code]=myxps.GroupInitialize('Group1')
[code]=myxps.GroupHomeSearch('Group1')
Close XPS Connection
% Disconnect from the XPS controller
code=myxps.CloseInstrument;
for more information on how to load and use a .NET assembly
10
Programmer's Manual

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xps-rlXps-qXps-d

Table of Contents