EasyManuals Logo

Newport XPS Programmer's Manual

Newport XPS
722 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #118 background imageLoading...
Page #118 background image
XPS Unified Programmer’s Manual
7.2.1.57 GPIOAnalogGainGet
Name
GPIOAnalogGainGetGets the gain for one or several analog inputs (ADC).
Input tests
- Refer to section 7.1: “Input Tests Common to all XPS Functions”.
- Checks board: (-8)
- GPIO name (ADC): (-8)
- Hardware compatibility or XPS initialization in progress: (-22)
Description
Gets the gain value for one or several analog inputs. Please refer to Appendix B.5
Analog I/O of the XPS Motion Tutorial for further information about ADC gain.
The gain value must be 1, 2, 4 or 8.
The maximum number of INT boards that can be plugged inside the XPS controller is 2,
increasing the number of analog inputs (ADC) from 4 to 8.
Prototype
int GPIOAnalogGainGet(
int SocketID,
int NbElements,
char * GPIONameList,
double * AnalogGainValueArray
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
NbElements int Number of analog GPIO to read.
GPIONameList char * List of analog input names separator is
comma.
Output parameters
AnalogGainValueArray int * Value of analog input gain.
Return (In addition to the results of “Input Tests Common to all XPS
Functions”)
0: No error.
-8: Wrong object type for this command.
-22: Not allowed action.
EDH0373En1023 01/18 104

Table of Contents

Other manuals for Newport XPS

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Newport XPS and is the answer not in the manual?

Newport XPS Specifications

General IconGeneral
Controller TypeMulti-axis motion controller
Power Supply24 VDC
Communication InterfaceEthernet
Programming LanguageC, C++, .NET, LabVIEW
Supported Motor TypesStepper
Operating System CompatibilityWindows
AxesUp to 8 axes

Related product manuals