Gpioanaloggainget - 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
7.2.1.57

GPIOAnalogGainGet

Name
GPIOAnalogGainGet – Gets 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
NbElements
GPIONameList
Output parameters
AnalogGainValueArray
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.
int
Socket identifier gets by the
"TCP_ConnectToServer" function.
int
Number of analog GPIO to
char *
List of analog input names –
comma.
int *
Value of analog input gain.
104
Programmer's Manual
read.
separator is

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xps-rlXps-qXps-d

Table of Contents