How To Use Xps .Net Assembly From Visual Studio C; Add Reference To Newport Xps .Net Assembly; C# Code Sources - 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.3

How to Use XPS .NET Assembly from Visual Studio C#?

Refer to
Microsoft
depending on your Visual Studio version.
3.3.1

Add Reference to Newport XPS .NET Assembly

In your project add Newport.XPS.CommandInterface.dll in References from Windows
GAC:
3.3.2

C# Code Sources

C# Header
using
CommandInterfaceXPS;
access
Add a Variable to Declare an "XPS" Object
CommandInterfaceXPS.XPS
Create an Instance of "XPS" Object
m_xpsInterface =
if
(m_xpsInterface != null)
...
Open XPS Connection
if
(m_xpsInterface != null)
int
returnValue = m_xpsInterface.OpenInstrument(m_IPAddress, m_IPPort,
DEFAULT_TIMEOUT);
Call "XPS" Functions
if
(m_xpsInterface != null)
{
string
string
int
errorString);
if
(result == CommandInterfaceXPS.XPS.FAILURE)
...
for more information on how to load and use a .NET assembly
// Newport.XPS.CommandInterface .NET Assembly
m_xpsInterface = null;
new
CommandInterfaceXPS.XPS();
XPSVersion = string.Empty;
errorString = string.Empty;
result =
m_xpsInterface.FirmwareVersionGet(out
6
Programmer's Manual
XPSVersion,
out

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xps-rlXps-qXps-d

Table of Contents