Motion Tutorial; Xps Architecture; Introduction - Newport XPS-Q8 Users Manual, Software Tools And Tutorial

Universal high-performance motion controller/driver
Hide thumbs Also See for XPS-Q8:
Table of Contents

Advertisement

XPS-Q8 Controller
6.0

XPS Architecture

6.1

Introduction

The architecture of the XPS firmware is based on an object-oriented approach. Objects
are key to understanding this approach. Real-world objects share two characteristics:
state and behavior. Software objects are modeled after real-world objects, so they have
state and behavior too. A software object maintains its state in one or more variables. A
variable is an item of data named by an identifier. A software object implements its
behavior with methods. A method is a function (subroutine) associated with an object.
Therefore, an object is a software bundle of variables and related methods.
Encapsulating related variables and methods into a neat software bundle is a simple yet
powerful idea that provides two primary benefits to software developers:
• Modularity: The source code for an object can be written and maintained
independent of the source code for other objects. Also, an object can be easily
passed around in the system.
• Hidden information: An object has a public interface that other objects can use to
communicate with it. The object can maintain private information and methods that
can be changed at any time without affecting the other objects that depend on it.
All objects have a life cycle and state diagrams are used to show the life cycle of the
objects. The transition from one state to another is initiated after receiving a message
from another object. Like all other diagrams, state diagrams can be nested in different
layers to keep them simple and easy to read.

Motion Tutorial

67
XPSDocumentation V1.4.x (EDH0301En1060 — 10/17)
Motion Tutorial

Advertisement

Table of Contents
loading

Table of Contents