Gpioanalogget - 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.59

GPIOAnalogGet

Name
GPIOAnalogGet – Reads one or several analog inputs (ADC) or outputs( DAC).
Input tests
-
Refer to section 7.1: "Input Tests Common to all XPS Functions".
-
GPIO name (ADC or DAC): (-8)
-
Hardware compatibility or XPS initialization in progress: (-22)
Description
Reads one or several analog IO and returns the value(s) in an array.
Prototype
int GPIOAnalogGet(
int SocketID,
int NbElements,
char * GPIONameList,
double * AnalogValueArray
)
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 read.
char *
List of analog GPIO names – separator is
comma.
double * Analog GPIO value array (DAC or ADC).
106
Programmer's Manual

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xps-rlXps-qXps-d

Table of Contents