How To Use Xps .Net Assembly From Ironpython; Add Reference To .Net Assembly; Ironpython 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
Call "XPS" functions (Use a .Net Invoke Node to select a XPS method):
Close XPS connection (Use a .Net Invoke Node to select the XPS method
"CloseInstrument"):
Close .NET Reference:
3.5

How to Use XPS .NET Assembly from IronPython?

Refer to
IronPython
depending on your IronPython version.
3.5.1

Add Reference to .NET Assembly

Add Newport.XPS.CommandInterface.dll in References of your script:
x86:
import sys
sys.path.append(r'C:\Windows\Microsoft.NET\assembly\GAC_32\Newport.XPS.Comma
ndInterface\v4.0_1.0.0.0__9a267756cf640dcf')
x64:
import sys
sys.path.append(r'C:\Windows\Microsoft.NET\assembly\GAC_64\Newport.XPS.Comma
ndInterface\v4.0_1.0.0.0__9a267756cf640dcf')
3.5.2

IronPython Code Source

IronPython Header
# The CLR module provide functions for interacting with the underlying
# .NET runtime
import clr
# Add reference to assembly and import names from namespace (IronPython)
clr.AddReferenceToFile("Newport.XPS.CommandInterface.dll") from
CommandInterfaceXPS import *
for more information on how to load and use a .NET assembly
8
Programmer's Manual

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xps-rlXps-qXps-d

Table of Contents