8810A Function Reference Manual
8810A Function Reference Manual
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 1 of 91
Contents
Table of Contents
1 Introduction ............................................................................................................................. 5
2 API-8810A Connect/Disconnect Routines ........................................................................... 11
2.1 API8810A_ConnectViaIEEE ....................................................................................... 11
2.2 API8810A_ConnectViaUSB ........................................................................................ 12
2.3 API8810A_ConnectViaEthernet................................................................................... 16
2.4 API8810A_DisconnectIEEE......................................................................................... 16
2.5 API8810A_DisconnectUSB ......................................................................................... 17
2.6 API8810A_DisconnectEthernet .................................................................................... 17
2.7 API8810A_GetAPI8810AUSBDeviceCnt ................................................................... 17
2.8 API8810A_GetAPI8810ADeviceIDN .......................................................................... 18
3 API-8810A Channel Routines .............................................................................................. 19
3.1 API8810A_SetAPITrackHold ...................................................................................... 19
3.2 API8810A_GetAPITrackHold ...................................................................................... 19
3.3 API8810A_SetAPISignalMode .................................................................................... 20
3.4 API8810A_GetAPISignalMode ................................................................................... 20
3.5 API8810A_SetAPIReferenceSrc .................................................................................. 21
3.6 API8810A_GetAPIReferenceSrc ................................................................................. 22
3.7 API8810A_SetAPIRatio ............................................................................................... 22
3.8 API8810A_GetAPIRatio .............................................................................................. 23
3.9 API8810A_SetAPIAutoBandwidth .............................................................................. 24
3.10 API8810A_SetAPIBandwidth ...................................................................................... 24
3.11 API8810A_GetAPIBandwidth ..................................................................................... 25
3.12 API8810A_GetAPIAngle ............................................................................................. 25
3.13 API8810A_GetAPIAvgAngle ...................................................................................... 26
3.14 API8810A_GetAPIVelocity ......................................................................................... 26
3.15 API8810A_GetAPILineLineVolt ................................................................................. 27
3.16 API8810A_GetAPINullVolt ......................................................................................... 28
3.17 API8810A_GetAPIRefVolt .......................................................................................... 28
3.18 API8810A_GetAPIRefFreq .......................................................................................... 29
3.19 API8810A_SetAPIAvgState ......................................................................................... 29
3.20 API8810A_GetAPIAvgState ........................................................................................ 30
3.21 API8810A_SetAPIAvgRate ......................................................................................... 30
3.22 API8810A_GetAPIAvgRate ......................................................................................... 31
3.23 API8810A_SetAPIAngLimitState ................................................................................ 32
3.24 API8810A_GetAPIAngLimitState ............................................................................... 32
3.25 API8810A_SetAPIAngLimitCompare ......................................................................... 33
3.26 API8810A_GetAPIAngLimitCompare......................................................................... 33
3.27 API8810A_SetAPIAngUpperLimit .............................................................................. 34
3.28 API8810A_GetAPIAngUpperLimit ............................................................................. 35
3.29 API8810A_SetAPIAngLowerLimit ............................................................................. 35
3.30 API8810A_GetAPIAngLowerLimit ............................................................................. 36
3.31 API8810A_SetAPIAngLimitErrorStep ........................................................................ 36
3.32 API8810A_GetAPIAngLimitErrorStep ........................................................................ 37
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 2 of 91
Contents
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 4 of 91
Introduction
1 Introduction
This document lists the functions and describes the purpose, format, input and output parameters,
and possible errors for each function.
Reference Documentation
For information about the operation of this instrument please refer to the Operation Manual for
Model 8810A.
For information about general programming information please refer to the Programmer’s
Reference Guide for 8810A.
Reference CD
For electronic copies of the 8810A documentation, API-8810A Soft Panel application program,
and source code for API-8810ADll and Soft Panel application please refer to the 8810A Product
CD.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 5 of 91
Functions
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 10 of 91
Functions
2.1 API8810A_ConnectViaIEEE
Format:
_API8810AFUNC int API8810A_ConnectViaIEEE
(
int apiNo,
int nIEEEAddr,
int nIEEELang
)
Function Description:
This function sets up and opens the connection to communicate to the 8810A
via IEEE.
The IEEE supports the following language protocols:
• API-8810A Native
• API-8810 Native (Legacy)
• API-8810 SR103 (Legacy)
• API-8810 HSR202 (Legacy)
• API-8810 HSR203 (Legacy)
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nIEEEAddr - IEEE Address to be used to connect to 8810A. (0-30)
nIEEELang - Language Protocol to be used to communicate via IEEE to 8810A.
8810A Language Types:
API8810A_NATIVE 0
IEEE_API8810_NATIVE 1
IEEE_API8810_SR103 2
IEEE_API8810_HSR202 3
IEEE_API8810_HSR203 4
IEEE_API8810_MATECIIL 5
IEEE_API8810_FX2 6
Return Value:
API_SUCCESS – successfully connection via IEEE using specified address and
language protocol
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_ADDRS - invalid IEEE Address parameter
API_ERROR_LANG - invalid 8810A Language parameter
API_ERROR_OPEN_API_SESSION - IEEE connection or configuration error
References for this function:
This function will make a call to the API8810A_SetIEEELang() routine to
force the 8810A device to handle commands in the language specified.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 11 of 91
Functions
2.2 API8810A_ConnectViaUSB
Format:
_API8810AFUNC int API8810A_ConnectViaUSB
(
int apiNo,
int nDeviceNo
)
Function Description:
This function sets up and opens the connection to communicate to the 8810A
via USB.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nDeviceNo – Device Number to be used to connect to 8810A. (0-30)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_USB_CONNECTION– USB connection error
References for this function:
Prior to calling this function, make calls to the
API8810A_GetAPI8810AUSBDeviceCnt() routine to determine the number of
Cypress USB Devices detected in your system and the
API8810A_GetAPI8810ADeviceIDN() routine to determine the device number
(DeviceNo) associated with the Cypress USB Devices that are connected to
8810A via USB.
Sample Code:
The following sample code is available in the 8810A Software Package under
the folder: ..\Driver\Source\API8810AUSBConnect. The sample code is written
in C, compiled under Microsoft Visual .NET 2003 and invokes the routines in
the API-8810A Dll that has been included in the software package.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 12 of 91
Functions
#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>
#include <Wincon.h>
#define _BUILD_API8810ADLL
#define __WIN32__
#include "API8810ADll.h"
/**************************************************************************
* Function: main
* Description: Main routine for API8810A USB Connection application.
* Scan for Cypress USB devices and opens each USB device to
* determine which one is connected to a 8810A via IDN command.
* Prompts the user for the USB Endpoint associated with 8810A
* device and reads and displays the Signal Mode for Channel 1.
* Parameters: None
* Return: 1 if successful.
* -1 if any failure to API8810ADll calls.
***************************************************************************/
int main()
{
HANDLE hWnd;
COORD bufferSize;
BOOL bRetry;
int nStatus;
int nUSBDeviceCnt;
int n8810ADeviceCnt;
char sz8810AIDN[100];
int i,j;
/* This keeps track of the array of the Cypress USB Endpoints.
We are only interested in the ones that are connected to the 8810A
*/
int aUSB_8810A_Endpoints[MAX_API];
BOOL bValidEntry;
int nConnectEndpoint;
int nSigMode;
char buff[10];
/* Create a COORD to hold the buffer size and change the internal buffer size */
bufferSize.X = 800;
bufferSize.Y = 800;
SetConsoleScreenBufferSize(hWnd, bufferSize);
bRetry = TRUE;
while (bRetry)
{
/* Initialize the array of Cypress USB Endpoints to -1 */
for (i = 0; i < MAX_API; i++)
aUSB_8810A_Endpoints[i] = -1;
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 13 of 91
Functions
if (nUSBDeviceCnt > 0)
{
/* Determine which USB devices are connected to 8810A */
n8810ADeviceCnt = 0;
for (i = 0; i < nUSBDeviceCnt; i++)
{
nStatus = API8810A_GetAPI8810ADeviceIDN(i, &sz8810AIDN[0]);
if (nStatus != API_SUCCESS)
{
/* The USB device connected is not a 8810A */
printf("\nUSB Endpoint: %d NOT 8810A device", i);
}
else
{
/* Replace the \r\n with a terminator character (\0) */
for (j = 0; j < (int)strlen(sz8810AIDN); j++)
{
if (sz8810AIDN[j] == '\r')
{
sz8810AIDN[j] = '\0';
break;
}
}
/* Track the endpoints that are connected to 8810A */
aUSB_8810A_Endpoints[i] = i;
n8810ADeviceCnt++;
/* Connect to 8810A */
nStatus = API8810A_ConnectViaUSB(1, nConnectEndpoint);
if (nStatus != API_SUCCESS)
{
printf("\nAPI8810A_ConnectViaUSB Error: %d", nStatus);
return -1;
}
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 14 of 91
Functions
bRetry = FALSE;
}
else
{
/* Request retry to find USB devices */
bValidEntry = FALSE;
while(!bValidEntry)
{
printf("\nPlease type 'y' or 'Y' to retry USB detection: ");
memset( buff,0x00,sizeof(buff));
scanf("%s",buff);
if ((buff[0] == 'y') || (buff[0] == 'Y'))
bRetry = TRUE;
else
bRetry = FALSE;
bValidEntry = TRUE;
}
}
}
return 1;
}
Output:
Detected 3 Cypress USB Devices:
USB Endpoint: 0 NOT 8810A device
USB Endpoint: 1 IDN: NORTH ATLANTIC,8810AH-R,31164,5.13.4.5.4
USB Endpoint: 2 IDN: NORTH ATLANTIC,8810A-R,35524,5.18.102.102.15
Please Enter USB Endpoint Device to Connect: 1
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 15 of 91
Functions
2.3 API8810A_ConnectViaEthernet
Format:
_API8810AFUNC int API8810A_ConnectViaEthernet
(
int apiNo,
char *szIPAddr,
int nPort
)
Function Description:
This function sets up and opens the connection to communicate to the 8810A
via Ethernet.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
szIPAddr - IP Address to be used to connect to 8810A.
nPort – Port to be used to connect to 8810A.
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_WRITE – unable to perform ethernet login to 8810A
API_ERROR_ETHER_CONNECTION– Ethernet connection error
References for this function:
None.
2.4 API8810A_DisconnectIEEE
Format:
_API8810AFUNC int API8810A_DisconnectIEEE
(
int apiNo
)
Function Description:
This function closes the connection to communicate to the 8810A via IEEE.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
References for this function:
Prior to calling this function, make call to the API8810A_ConnectViaIEEE()
routine to connected to 8810A via IEEE.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 16 of 91
Functions
2.5 API8810A_DisconnectUSB
Format:
_API8810AFUNC int API8810A_DisconnectUSB
(
int apiNo
)
Function Description:
This function closes the connection to communicate to the 8810A via USB.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
References for this function:
Prior to calling this function, make call to the API8810A_ConnectViaUSB()
routine to connected to 8810A via USB.
2.6 API8810A_DisconnectEthernet
Format:
_API8810AFUNC int API8810A_DisconnectEthernet
(
int apiNo
)
Function Description:
This function closes the connection to communicate to the 8810A via
Ethernet.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
References for this function:
Prior to calling this function, make call to the
API8810A_ConnectViaEthernet() routine to connected to 8810A via Ethernet.
2.7 API8810A_GetAPI8810AUSBDeviceCnt
Format:
_API8810AFUNC int API8810A_GetAPI8810AUSBDeviceCnt
(
int *pnUSBDeviceCnt
)
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 17 of 91
Functions
Function Description:
This function invokes the Cypress driver and returns the number of Cypress
USB Devices detected with your computer system.
Parameters:
pnUSBDeviceCnt – pointer to location to return the number of Cypress USB
Devices detected
Return Value:
API_SUCCESS - function is successful
References for this function:
None.
2.8 API8810A_GetAPI8810ADeviceIDN
Format:
_API8810AFUNC int API8810A_ GetAPI8810ADeviceIDN
(
int nDeviceNo,
char *pszIDN
)
Function Description:
This function opens the USB device specified by the device number and
performs an IDN query (*IDN?\r\n) to retrieval information about the
device. If the device responds with “NORTH ATLANTIC,8810A” or its
associated model, this function will populate the IDN string with the
information retrieved from the device.
Parameters:
nDeviceNo – USB device number to open and communication via USB with
8810A.
pszIDN – pointer to location to return the IDN query response
Return Value:
API_SUCCESS - function is successful
API_ERROR_RANGE_GET – value retrieved is out-of-range
API_ERROR_DATA – data returned from 8810A is not valid for command sent
API_ERROR_USB_CONNECTION – USB connection error when opening device with
Device number specified.
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 18 of 91
Functions
3.1 API8810A_SetAPITrackHold
Format:
_API8810AFUNC int API8810A_SetAPITrackHold
(
int apiNo,
int nChanNo,
bool bHold
)
Function Description:
This function sends the command to set 8810A channel specified to track or
hold the angle data. Note the 8810A device will not accept the command if
its remote communication configuration does not match the communication
connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
bHold – command to track or hold channel angle
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function not supported (Track or Hold not
supported in MATE/CIIL)
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
3.2 API8810A_GetAPITrackHold
Format:
_API8810AFUNC int API8810A_GetAPITrackHold
(
int apiNo,
int nChanNo,
bool *pbHold
)
Function Description:
This function sends the command to get the track or hold state for the
8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 19 of 91
Functions
3.3 API8810A_SetAPISignalMode
Format:
_API8810AFUNC int API8810A_SetAPISignalMode
(
int apiNo,
int nChanNo,
int nSigMode
)
Function Description:
This function sends the command to set 8810A channel specified to resolver
or synchro mode. Note the 8810A device will not accept the command if its
remote communication configuration does not match the communication
connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
nSigMode – signal mode to set channel
Mode Types:
RESOLVER 0
SYNCHRO 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_RANGE_SET – parameter specified is out-of-range
API_ERROR_WRITE - unable to send command to 8810A
3.4 API8810A_GetAPISignalMode
Format:
_API8810AFUNC int API8810A_GetAPISignalMode
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 20 of 91
Functions
(
int apiNo,
int nChanNo,
int *pnSigMode
)
Function Description:
This function sends the command to get the signal mode for the 8810A
channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pnSigMode – pointer to location to return the channel signal mode
Mode Types:
RESOLVER 0
SYNCHRO 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_RANGE_GET – value retrieved is out-of-range
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.5 API8810A_SetAPIReferenceSrc
Format:
_API8810AFUNC int API8810A_SetAPIReferenceSrc
(
int apiNo,
int nChanNo,
int nRefSrc
)
Function Description:
This function sends the command to set 8810A channel specified to internal
or external reference mode. Note the 8810A device will not accept the
command if its remote communication configuration does not match the
communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
nRefSrc – reference mode to set channel
Reference Source Types:
INTERNAL 0
EXTERNAL 1
Return Value:
API_SUCCESS - function is successful
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 21 of 91
Functions
3.6 API8810A_GetAPIReferenceSrc
Format:
_API8810AFUNC int API8810A_GetAPIReferenceSrc
(
int apiNo,
int nChanNo,
int *pnRefSrc
)
Function Description:
This function sends the command to get the reference mode for the 8810A
channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pnRefSrc – pointer to location to return the reference mode
Reference Source Types:
INTERNAL 0
EXTERNAL 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_RANGE_GET – value retrieved is out-of-range
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.7 API8810A_SetAPIRatio
Format:
_API8810AFUNC int API8810A_SetAPIRatio
(
int apiNo,
int nChanNo,
int nRatio
)
Function Description:
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 22 of 91
Functions
This function sends the command to set the ratio value for the specified
8810A channel. Note the 8810A device will not accept the command if its
remote communication configuration does not match the communication
connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
nRatio – ratio value set channel (1 – 255)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_RANGE_SET – parameter specified is out-of-range
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
3.8 API8810A_GetAPIRatio
Format:
_API8810AFUNC int API8810A_GetAPIRatio
(
int apiNo,
int nChanNo,
int *pnRatio
)
Function Description:
This function sends the command to get the ratio value for the 8810A
channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pnRatio – pointer to location to return the ratio value
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 23 of 91
Functions
3.9 API8810A_SetAPIAutoBandwidth
Format:
_API8810AFUNC int API8810A_SetAPIAutoBandwidth
(
int apiNo,
int nChanNo
)
Function Description:
This function sends the command to set the bandwidth to “auto” mode for
the specified 8810A channel. Note the 8810A device will not accept the
command if its remote communication configuration does not match the
communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
3.10 API8810A_SetAPIBandwidth
Format:
_API8810AFUNC int API8810A_SetAPIBandwidth
(
int apiNo,
int nChanNo,
int nBandwidth
)
Function Description:
This function sends the command to set the bandwidth to “override” mode
with the bandwidth specified for the specified 8810A channel. Note the
8810A device will not accept the command if its remote communication
configuration does not match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
nBandwidth – Bandwidth to set the channel
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 24 of 91
Functions
3.11 API8810A_GetAPIBandwidth
Format:
_API8810AFUNC int API8810A_GetAPIBandwidth
(
int apiNo,
int nChanNo,
bool *pbAutoBW,
int *pnBandwidth
)
Function Description:
This function sends the command to get the bandwidth mode and bandwidth
value for the 8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pbAutoBW – pointer to location to return the bandwidth mode indicator
pnBandwidth – pointer to location to return the bandwidth value
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.12 API8810A_GetAPIAngle
Format:
_API8810AFUNC int API8810A_GetAPIAngle
(
int apiNo,
int nChanNo,
double *pdAngle
)
Function Description:
This function sends the command or perform an IEEE read (with 8810 Legacy
languages) to get angle value for the 8810A channel.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 25 of 91
Functions
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdAngle – pointer to location to return the angle value
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.13 API8810A_GetAPIAvgAngle
Format:
_API8810AFUNC int API8810A_GetAPIAvgAngle
(
int apiNo,
int nChanNo,
double *pdAvgAngle
)
Function Description:
This function sends the command or perform an IEEE read (with 8810 Legacy
languages) to get angle value for the 8810A channel. In API8810A_NATIVE
language mode, if the angle averaging is turned on, the average angle
value is returned by the unit, otherwise the angle value is returned by
the unit.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdAvgAngle – pointer to location to return the angle average value
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.14 API8810A_GetAPIVelocity
Format:
_API8810AFUNC int API8810A_GetAPIVelocity
(
int apiNo,
int nChanNo,
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 26 of 91
Functions
double *pdVelocity
)
Function Description:
This function sends the command to get angle velocity value for the 8810A
channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdVelocity – pointer to location to return the angle velocity value
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.15 API8810A_GetAPILineLineVolt
Format:
_API8810AFUNC int API8810A_GetAPILineLineVolt
(
int apiNo,
int nChanNo,
double *pdLineLineVolt
)
Function Description:
This function sends the command to get line-to-line voltage value for the
8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdLineLineVolt – pointer to location to return the line-to-line voltage
value
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 27 of 91
Functions
3.16 API8810A_GetAPINullVolt
Format:
_API8810AFUNC int API8810A_GetAPINullVolt
(
int apiNo,
int nChanNo,
double *pdNullVolt
)
Function Description:
This function sends the command to get null voltage value for the 8810A
channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdNullVolt – pointer to location to return the null voltage value
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Remarks:
Currently the 8810A device will always return 0 for the null voltage.
3.17 API8810A_GetAPIRefVolt
Format:
_API8810AFUNC int API8810A_GetAPIRefVolt
(
int apiNo,
int nChanNo,
double *pdRefVolt
)
Function Description:
This function sends the command to get reference voltage value for the
8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdRefVolt – pointer to location to return the reference voltage value
Return Value:
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 28 of 91
Functions
3.18 API8810A_GetAPIRefFreq
Format:
_API8810AFUNC int API8810A_GetAPIRefFreq
(
int apiNo,
int nChanNo,
double *pdRefFreq
)
Function Description:
This function sends the command to get reference frequency value for the
8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdRefFreq – pointer to location to return the reference frequency value
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
3.19 API8810A_SetAPIAvgState
Format:
_API8810AFUNC int API8810A_SetAPIAvgState
(
int apiNo,
int nChanNo,
bool bAvgStateOn
)
Function Description:
This function sends the command to turn on or off the angle averaging mode
for the specified 8810A channel. Note the 8810A device will not accept the
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 29 of 91
Functions
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
bAvgStateOn – Turn on or off angle averaging for the channel
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
3.20 API8810A_GetAPIAvgState
Format:
_API8810AFUNC int API8810A_GetAPIAvgState
(
int apiNo,
int nChanNo,
bool *pbAvgStateOn
)
Function Description:
This function sends the command to get the angle averaging mode for the
8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pbAvgStateOn – pointer to location to return the angle averaging mode
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.21 API8810A_SetAPIAvgRate
Format:
_API8810AFUNC int API8810A_SetAPIAvgRate
(
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 30 of 91
Functions
int apiNo,
int nChanNo,
int nAvgRate
)
Function Description:
This function sends the command to set the angle averaging rate in msec
for the specified 8810A channel. Note the 8810A device will not accept the
command if its remote communication configuration does not match the
communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
nAvgRate – angle averaging rate to set for the channel (10–10000 msec)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_RANGE_SET – parameter specified is out-of-range
API_ERROR_WRITE - unable to send command to 8810A
3.22 API8810A_GetAPIAvgRate
Format:
_API8810AFUNC int API8810A_GetAPIAvgRate
(
int apiNo,
int nChanNo,
int *pnAvgRate
)
Function Description:
This function sends the command to get the angle averaging rate for the
8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pnAvgRate – pointer to location to return the angle averaging rate
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 31 of 91
Functions
3.23 API8810A_SetAPIAngLimitState
Format:
_API8810AFUNC int API8810A_SetAPIAngLimitState
(
int apiNo,
int nChanNo,
bool bAngLmtOn
)
Function Description:
This function sends the command to turn on or off the angle limit testing
mode for the specified 8810A channel. Note the 8810A device will not
accept the command if its remote communication configuration does not
match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
bAngLmtOn – Turn on or off angle limit testing for the channel
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
3.24 API8810A_GetAPIAngLimitState
Format:
_API8810AFUNC int API8810A_GetAPIAngLimitState
(
int apiNo,
int nChanNo,
bool *pbAngLmtOn
)
Function Description:
This function sends the command to get the angle limit testing mode for
the 8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pbAngLmtOn – pointer to location to return the angle limit testing mode
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 32 of 91
Functions
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.25 API8810A_SetAPIAngLimitCompare
Format:
_API8810AFUNC int API8810A_SetAPIAngLimitCompare
(
int apiNo,
int nChanNo,
int nAngLimitCompare
)
Function Description:
This function sends the command to set 8810A channel specified with the
angle comparison mode for angle limit testing. Note the 8810A device will
not accept the command if its remote communication configuration does not
match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
nAngLimitCompare – comparison mode for angle limit testing to set channel
Angle Limit Comparison Mode Types:
ANGLE_LIMIT_ABS_ANG 0
ANGLE_LIMIT_ANG_ERR 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_RANGE – parameter specified is out-of-range
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
3.26 API8810A_GetAPIAngLimitCompare
Format:
_API8810AFUNC int API8810A_GetAPIAngLimitCompare
(
int apiNo,
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 33 of 91
Functions
int nChanNo,
char *pszAngLimitCompare
)
Function Description:
This function sends the command to get the angle comparison mode for angle
limit testing for the 8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pszAngLimitCompare – pointer to location to return the angle comparison
mode for angle limit testing
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.27 API8810A_SetAPIAngUpperLimit
Format:
_API8810AFUNC int API8810A_SetAPIAngUpperLimit
(
int apiNo,
int nChanNo,
double dAngUpperLimit
)
Function Description:
This function sends the command to set 8810A channel specified with the
upper angle limit value for angle limit testing. Note the 8810A device
will not accept the command if its remote communication configuration does
not match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
dAngUpperLimit – upper angle limit value to set channel for angle limit
testing (0-360.0)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_RANGE_SET – parameter specified is out-of-range
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 34 of 91
Functions
3.28 API8810A_GetAPIAngUpperLimit
Format:
_API8810AFUNC int API8810A_GetAPIAngUpperLimit
(
int apiNo,
int nChanNo,
double *pdAngUpperLimit
)
Function Description:
This function sends the command to get the upper angle limit value for
angle limit testing for the 8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdAngUpperLimit – pointer to location to return the upper angle limit
value for angle limit testing
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.29 API8810A_SetAPIAngLowerLimit
Format:
_API8810AFUNC int API8810A_SetAPIAngLowerLimit
(
int apiNo,
int nChanNo,
double dAngLowerLimit
)
Function Description:
This function sends the command to set 8810A channel specified with the
lower angle limit value for angle limit testing. Note the 8810A device
will not accept the command if its remote communication configuration does
not match the communication connection mode.
Parameters:
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 35 of 91
Functions
3.30 API8810A_GetAPIAngLowerLimit
Format:
_API8810AFUNC int API8810A_GetAPIAngLowerLimit
(
int apiNo,
int nChanNo,
double *pdAngLowerLimit
)
Function Description:
This function sends the command to get the lower angle limit value for
angle limit testing for the 8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdAngLowerLimit – pointer to location to return the lower angle limit
value for angle limit testing
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.31 API8810A_SetAPIAngLimitErrorStep
Format:
_API8810AFUNC int API8810A_SetAPIAngLimitErrorStep
(
int apiNo,
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 36 of 91
Functions
int nChanNo,
double dAngLimitErrorStep
)
Function Description:
This function sends the command to set 8810A channel specified with the
angle step value for angle error comparison for angle limit testing. Note
the 8810A device will not accept the command if its remote communication
configuration does not match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
dAngLimitErrorStep – angle step value to set channel for angle limit
testing (0-360.0)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_RANGE_SET – parameter specified is out-of-range
API_ERROR_WRITE - unable to send command to 8810A
3.32 API8810A_GetAPIAngLimitErrorStep
Format:
_API8810AFUNC int API8810A_GetAPIAngLimitErrorStep
(
int apiNo,
int nChanNo,
double *pdAngLimitErrorStep
)
Function Description:
This function sends the command to get the angle step value for angle
error comparison for angle limit testing for the 8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdAngLimitErrorStep – pointer to location to return the angle step value
for angle error comparison for angle limit testing.
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 37 of 91
Functions
3.33 API8810A_SetAPIDAOutput
Format:
_API8810AFUNC int API8810A_SetAPIDAOutput
(
int apiNo,
int nChanNo,
int nDAOutput
)
Function Description:
This function sends the command to set 8810A channel specified with the
data type to use for DA output. Note the 8810A device will not accept the
command if its remote communication configuration does not match the
communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
nDAOutput – data type mode for DA output
DA Output Data Types:
DA_ANGLE_OUTPUT 0
DA_VELOCITY_OUTPUT 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_RANGE – parameter specified is out-of-range
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
3.34 API8810A_GetAPIDAOutput
Format:
_API8810AFUNC int API8810A_GetAPIDAOutput
(
int apiNo,
int nChanNo,
char *pszDAOutput
)
Function Description:
This function sends the command to get the data type to use for DA output
for the 8810A channel.
Parameters:
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 38 of 91
Functions
3.35 API8810A_SetAPIDAUpperLimit
Format:
_API8810AFUNC int API8810A_SetAPIDAUpperLimit
(
int apiNo,
int nChanNo,
double dDAUpperLimit
)
Function Description:
This function sends the command to set 8810A channel specified with the
upper angle or velocity limit value for DA output. Note the 8810A device
will not accept the command if its remote communication configuration does
not match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
dDAUpperLimit – upper angle or velocity limit value to set channel for DA
Output
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
3.36 API8810A_GetAPIDAUpperLimit
Format:
_API8810AFUNC int API8810A_GetAPIDAUpperLimit
(
int apiNo,
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 39 of 91
Functions
int nChanNo,
double *pdDAUpperLimit
)
Function Description:
This function sends the command to get the upper angle or velocity limit
value for DA output for the 8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdDAUpperLimit – pointer to location to return the upper angle or velocity
limit for DA output.
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.37 API8810A_SetAPIDALowerLimit
Format:
_API8810AFUNC int API8810A_SetAPIDALowerLimit
(
int apiNo,
int nChanNo,
double dDALowerLimit
)
Function Description:
This function sends the command to set 8810A channel specified with the
lower angle or velocity limit value for DA output. Note the 8810A device
will not accept the command if its remote communication configuration does
not match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
dDALowerLimit – lower angle or velocity limit value to set channel for DA
Output
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 40 of 91
Functions
3.38 API8810A_GetAPIDALowerLimit
Format:
_API8810AFUNC int API8810A_GetAPIDALowerLimit
(
int apiNo,
int nChanNo,
double *pdDALowerLimit
)
Function Description:
This function sends the command to get the lower angle or velocity limit
value for DA output for the 8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdDALowerLimit – pointer to location to return the lower angle or velocity
limit for DA output.
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
3.39 API8810A_SetAPIDAUpperVoltage
Format:
_API8810AFUNC int API8810A_SetAPIDAUpperVoltage
(
int apiNo,
int nChanNo,
double dDAUpperVoltage
)
Function Description:
This function sends the command to set 8810A channel specified with the
voltage value associated with the upper limit for DA output. Note the
8810A device will not accept the command if its remote communication
configuration does not match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 41 of 91
Functions
3.40 API8810A_GetAPIDAUpperVoltage
Format:
_API8810AFUNC int API8810A_GetAPIDAUpperVoltage
(
int apiNo,
int nChanNo,
double *pdDAUpperVoltage
)
Function Description:
This function sends the command to get the voltage value associated with
the upper limit value for DA output for the 8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdDAUpperVoltage – pointer to location to return the voltage value
associated with upper limit value for DA output.
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
3.41 API8810A_SetAPIDALowerVoltage
Format:
_API8810AFUNC int API8810A_SetAPIDALowerVoltage
(
int apiNo,
int nChanNo,
double dDALowerVoltage
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 42 of 91
Functions
)
Function Description:
This function sends the command to set 8810A channel specified with the
voltage value associated with the lower limit for DA output. Note the
8810A device will not accept the command if its remote communication
configuration does not match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
dDALowerVoltage – voltage value associated with lower limit value to set
channel for DA Output
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
3.42 API8810A_GetAPIDALowerVoltage
Format:
_API8810AFUNC int API8810A_GetAPIDALowerVoltage
(
int apiNo,
int nChanNo,
double *pdDALowerVoltage
)
Function Description:
This function sends the command to get the voltage value associated with
the lower limit value for DA output for the 8810A channel.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChanNo – 8810A Channel
pdDALowerVoltage – pointer to location to return the voltage value
associated with lower limit value for DA output.
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 43 of 91
Functions
None.
3.43 API8810A_SetAPIDisplayAngDiffState
Format:
_API8810AFUNC int API8810A_SetAPIDisplayAngDiffState
(
int apiNo,
int nAngDiffState
)
Function Description:
This function sends the command to turn on or off the angle difference
mode. Note the 8810A device will not accept the command if its remote
communication configuration does not match the communication connection
mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nAngDiffState – Turn on or off angle difference mode for the channel
Angle Difference Mode Types:
ANG_DIFF_DISABLED 0
ANG_DIFF_ENABLED 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
3.44 API8810A_GetAPIDisplayAngDiffState
Format:
_API8810AFUNC int API8810A_GetAPIDisplayAngDiffState
(
int apiNo,
int *pnAngDiffState
)
Function Description:
This function sends the command to get the angle difference mode setting.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 44 of 91
Functions
3.45 API8810A_GetAPIAngleDiff
Format:
_API8810AFUNC int API8810A_GetAPIAngleDiff
(
int apiNo,
double *pdAngleDiff
)
Function Description:
This function sends the command to get difference between angle value for
the Channel 1 and Channel 2 signal.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdAngleDiff – pointer to location to return the angle difference value
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 45 of 91
Functions
4.1 API8810A_GetAPIAngles
Format:
_API8810AFUNC int API8810A_GetAPIAngles
(
int apiNo,
double *pdAngle1,
double *pdAngle2
)
Function Description:
This function sends the command to get the angle values for both 8810A
channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdAngle1– pointer to location to return the angle value for Channel 1
pdAngle2– pointer to location to return the angle value for Channel 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
4.2 API8810A_GetAPIAvgStates
Format:
_API8810AFUNC int API8810A_GetAPIAvgStates
(
int apiNo,
bool *pbAvgStateOn1,
int *pnAvgRate1,
bool *pbAvgStateOn2,
int *pnAvgRate2
)
Function Description:
This function sends the command to get the angle averaging mode and the
average rates for both 8810A channels.
Parameters:
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 46 of 91
Functions
4.3 API8810A_GetAPIAvgAngles
Format:
_API8810AFUNC int API8810A_GetAPIAvgAngles
(
int apiNo,
double *pdAvgAngle1,
double *pdAvgAngle2
)
Function Description:
This function sends the command to get the angle average values for both
8810A channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdAvgAngle1– pointer to location to return the angle average value for
Channel 1
pdAvgAngle2– pointer to location to return the angle average value for
Channel 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 47 of 91
Functions
4.4 API8810A_GetAPIBandwidths
Format:
_API8810AFUNC int API8810A_GetAPIBandwidths
(
int apiNo,
bool *pbAutoBW1,
int *pnBandwidth1,
bool *pbAutoBW2,
int *pnBandwidth2
)
Function Description:
This function sends the command to get the bandwidth modes and bandwidth
values for both 8810A channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pbAutoBW1 – pointer to location to return the bandwidth mode for Channel 1
pnBandwidth1– pointer to location to return the bandwidth value for
Channel 1
pbAutoBW2 – pointer to location to return the bandwidth mode for Channel 2
pnBandwidth2– pointer to location to return the bandwidth value for
Channel 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
4.5 API8810A_GetAPISignalModes
Format:
_API8810AFUNC int API8810A_GetAPISignalModes
(
int apiNo,
int *pnSigMode1,
int *pnSigMode2
)
Function Description:
This function sends the command to get signal modes for both 8810A
channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pnSigMode1– pointer to location to return the signal mode for Channel 1
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 48 of 91
Functions
4.6 API8810A_GetAPIRatios
Format:
_API8810AFUNC int API8810A_GetAPIRatios
(
int apiNo,
int *pnRatio1,
int *pnRatio2
)
Function Description:
This function sends the command to get ratio values for both 8810A
channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pnRatio1– pointer to location to return the ratio value for Channel 1
pnRatio2– pointer to location to return the ratio value for Channel 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
4.7 API8810A_GetAPIReferenceSrcs
Format:
_API8810AFUNC int API8810A_GetAPIReferenceSrcs
(
int apiNo,
int *pnRefSrc1,
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 49 of 91
Functions
int *pnRefSrc2
)
Function Description:
This function sends the command to get reference modes for both 8810A
channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pnRefSrc1– pointer to location to return the reference mode for Channel 1
pnRefSrc2– pointer to location to return the reference mode for Channel 2
Reference Source Types:
INTERNAL 0
EXTERNAL 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
4.8 API8810A_GetAPITrackHolds
Format:
_API8810AFUNC int API8810A_GetAPITrackHolds
(
int apiNo,
bool *pbHold1,
bool *pbHold2
)
Function Description:
This function sends the command to get track or hold states for both 8810A
channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pbHold1– pointer to location to return the track or hold state for Channel 1
pbHold2– pointer to location to return the track or hold state for Channel 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 50 of 91
Functions
None.
4.9 API8810A_GetAPIAngLimitStates
Format:
_API8810AFUNC int API8810A_GetAPIAngLimitStates
(
int apiNo,
bool *pbAngLmtOn1,
int *pnAngLimitCmp1,
bool *pbAngLmtOn2,
int *pnAngLimitCmp2
)
Function Description:
This function sends the command to get angle limit testing states and
comparison modes for both 8810A channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pbAngLmtOn1– pointer to location to return the angle limit testing state
for Channel 1
pnAngLimitCmp1 – pointer to location to return the angle comparison mode
for Channel 1
pbAngLmtOn2– pointer to location to return the angle limit testing state
for Channel 2
pnAngLimitCmp2 – pointer to location to return the angle comparison mode
for Channel 2
Angle Limit Comparison Mode Types:
ANGLE_LIMIT_ABS_ANG 0
ANGLE_LIMIT_ANG_ERR 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
4.10 API8810A_GetAPIVelocities
Format:
_API8810AFUNC int API8810A_GetAPIVelocities
(
int apiNo,
double *pdVelocity1,
double *pdVelocity2
)
Function Description:
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 51 of 91
Functions
This function sends the command to get the angle velocity values for both
8810A channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdVelocity1– pointer to location to return the velocity value for Channel 1
pdVelocity2– pointer to location to return the velocity value for Channel 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
4.11 API8810A_GetAPILineLineVolts
Format:
_API8810AFUNC int API8810A_GetAPILineLineVolts
(
int apiNo,
double *pdLineLineVolt1,
double *pdLineLineVolt2
)
Function Description:
This function sends the command to get the line-to-line voltage values for
both 8810A channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdLineLineVolt1– pointer to location to return the line-to-line voltage
value for Channel 1
pdLineLineVolt2– pointer to location to return the line-to-line voltage
value for Channel 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 52 of 91
Functions
4.12 API8810A_GetAPINullVolts
Format:
_API8810AFUNC int API8810A_GetAPINullVolts
(
int apiNo,
double *pdNullVolt1,
double *pdNullVolt2
)
Function Description:
This function sends the command to get the null voltage values for both
8810A channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdNullVolt1– pointer to location to return the null voltage value for
Channel 1
pdNullVolt2– pointer to location to return the null voltage value for
Channel 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
4.13 API8810A_GetAPIRefVolts
Format:
_API8810AFUNC int API8810A_GetAPIRefVolts
(
int apiNo,
double *pdRefVolt1,
double *pdRefVolt2
)
Function Description:
This function sends the command to get the reference voltage values for
both 8810A channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdRefVolt1– pointer to location to return the reference voltage value for
Channel 1
pdRefVolt2– pointer to location to return the reference voltage value for
Channel 2
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 53 of 91
Functions
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
4.14 API8810A_GetAPIRefFreqs
Format:
_API8810AFUNC int API8810A_GetAPIRefFreqs
(
int apiNo,
double *pdRefFreq1,
double *pdRefFreq2
)
Function Description:
This function sends the command to get the reference frequency values for
both 8810A channels.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdRefFreq1– pointer to location to return the reference frequency value
for Channel 1
pdRefFreq2– pointer to location to return the reference frequency value
for Channel 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 54 of 91
Functions
5.1 API8810A_SetIntRefFreq
Format:
_API8810AFUNC int API8810A_SetIntRefFreq
(
int apiNo,
double dFreq
)
Function Description:
This function sends the command to set the reference frequency for the
reference module (if available). Note the 8810A device will not accept the
command if its remote communication configuration does not match the
communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
dFreq – Frequency value to set the reference module
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
5.2 API8810A_GetIntRefFreq
Format:
_API8810AFUNC int API8810A_GetIntRefFreq
(
int apiNo,
double *pdFreq
)
Function Description:
This function sends the command to get the reference frequency for the
reference module.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdFreq – pointer to location to return the frequency value to set the
reference module
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 55 of 91
Functions
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Remarks:
If the 8810A unit does not contain a reference module, the device will
always return 400 Hz for the frequency value.
5.3 API8810A_SetIntRefVolt
Format:
_API8810AFUNC int API8810A_SetIntRefVolt
(
int apiNo,
double dVolt
)
Function Description:
This function sends the command to set the reference voltage for the
reference module (if available). Note the 8810A device will not accept the
command if its remote communication configuration does not match the
communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
dVolt – Voltage value to set the reference module
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
5.4 API8810A_GetIntRefVolt
Format:
_API8810AFUNC int API8810A_GetIntRefVolt
(
int apiNo,
double *pdVolt
)
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 56 of 91
Functions
Function Description:
This function sends the command to get the reference voltage for the
reference module.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdVolt – pointer to location to return the voltage value to set the
reference module
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Remarks:
If the 8810A unit does not contain a reference module, the device will
always return 26 volts for the voltage value.
5.5 API8810A_SetIntRefOutputState
Format:
_API8810AFUNC int API8810A_SetIntRefOutputState
(
int apiNo,
int nOutputState
)
Function Description:
This function sends the command to set the reference output state for the
reference module (if available). Note the 8810A device will not accept the
command if its remote communication configuration does not match the
communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nOutputState – Output state value to set the reference module
Reference Output States:
INT_REF_OUT_NOT_AVAILABLE 0
INT_REF_OUT_AVAILABLE 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_RANGE_SET – parameter specified is out-of-range
API_ERROR_WRITE - unable to send command to 8810A
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 57 of 91
Functions
5.6 API8810A_GetIntRefOutputState
Format:
_API8810AFUNC int API8810A_GetIntRefOutputState
(
int apiNo,
int *pnOutputState
)
Function Description:
This function sends the command to get the reference output state for the
reference module.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pnOutputState – pointer to location to return the reference output state
to set the reference module
Reference Output States:
INT_REF_OUT_NOT_AVAILABLE 0
INT_REF_OUT_AVAILABLE 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Remarks:
If the 8810A unit does not contain a reference module, the device will
always return INT_REF_OUT_NOT_AVAILABLE.
5.7 API8810A_GetIntRefOverCurrentState
Format:
_API8810AFUNC int API8810A_GetIntRefOverCurrentState
(
int apiNo,
bool *pbIntRefOverCurrent
)
Function Description:
This function sends the command to get the reference over-current state
for the reference module.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 58 of 91
Functions
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pbIntRefOverCurrent – pointer to location to return the reference over-
current state to set the reference module
Reference Over-current States:
true - Reference is in over-current state
false - Reference is not in over-current state
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
5.8 API8810A_ResetIntRefOverCurrent
Format:
_API8810AFUNC int API8810A_ResetIntRefOverCurrent
(
int apiNo
)
Function Description:
This function sends the command to reset the reference over-current state
for the reference module (if available).
Note the 8810A device will not accept the command if its remote
communication configuration does not match the communication connection
mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 59 of 91
Functions
6.1 API8810A_PerformGetID
Format:
_API8810AFUNC int API8810A_PerformGetID
(
int apiNo,
char *pszID
)
Function Description:
This function sends the IDN command to get Device ID string for the
device. The ID returned includes the manufacturer (NORTH ATLANTIC), the
8810A module, serial number, and revision information.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pszID – pointer to location to return the device ID
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
6.2 API8810A_Reset
Format:
_API8810AFUNC int API8810A_Reset
(
int apiNo,
char *pszResults
)
Function Description:
This function sends the command to reset the 8810A device and set the
device setting back to the factory default settings. Note the 8810A device
will not accept the command if its remote communication configuration does
not match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pszID – pointer to location to return the results of the reset command.
Return results:
“Reset Complete” – reset has been successful.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 60 of 91
Functions
6.3 API8810A_GetErrors
Format:
_API8810AFUNC int API8810A_GetErrors
(
int apiNo,
char *pszErrors
)
Function Description:
This function sends the ERR command to get error from the error queue for
the device. “No error” is returned when there are no errors on the queue.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pszErrors – pointer to location to return the error string
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 61 of 91
Functions
7.1 API8810A_GetIEEELang
Format:
_API8810AFUNC int API8810A_GetIEEELang
(
int apiNo,
char *pszIEEELang
)
Function Description:
This function sends the command to get the IEEE language protocol set in
the 8810A.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pszIEEELang – pointer to location to return the IEEE protocol string
Return values:
“API8810A Native” – API-8810A Native
“API8810 Native” - API-8810 Native (Legacy)
“API8810 SR103” - API-8810 SR103 (Legacy)
“API8810 HSR202” - API-8810 HSR202 (Legacy)
“API8810 HSR203” - API-8810 HSR203 (Legacy)
“API8810 MATE/CIIL” – API-8810 MATE/CIIL (Legacy)
“API8810 FX2” - API-8810 FX2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
7.2 API8810A_SetIEEELang
Format:
_API8810AFUNC int API8810A_SetIEEELang
(
int apiNo,
int nIEEELang
)
Function Description:
This function sends the command to set the IEEE protocol language to
accept when communicating via IEEE. Note the 8810A device will not accept
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 62 of 91
Functions
the command if its remote communication configuration does not match the
communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nIEEELang - Language Protocol to be used to communicate via IEEE to 8810A.
8810A Language Types:
API8810A_NATIVE 0
IEEE_API8810_NATIVE 1
IEEE_API8810_SR103 2
IEEE_API8810_HSR202 3
IEEE_API8810_HSR203 4
IEEE_API8810_MATECIIL 5
IEEE_API8810_FX2 6
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
7.3 API8810A_GetCommState
Format:
_API8810AFUNC int API8810A_GetCommState
(
int apiNo,
char *pszCommState
)
Function Description:
This function sends the command to get the communication mode set in the
8810A.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pszCommState – pointer to location to return the communication mode string
Return values:
“Local Mode”
“Remote IEEE Addr: API-IEEE Language”
“Remote USB”
“Remote Ethernet”
“Remote J1”
“Remote with Lockout via IEEE Addr: API-IEEE Language”
“Remote with Lockout via USB”
“Remote with Lockout via Ethernet”
“Remote with Lockout via J1”
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 63 of 91
Functions
7.4 API8810A_GoToLocal
Format:
_API8810AFUNC int API8810A_GoToLocal
(
int apiNo
)
Function Description:
This function sends the command to set the communication mode to Local
mode. In Local mode, remote “set” commands will not be accepted.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
7.5 API8810A_SetLocalLockout
Format:
_API8810AFUNC int API8810A_SetLocalLockout
(
int apiNo
)
Function Description:
This function sends the command to lockout configuration setting such as
track or hold, signal mode, reference mode, and ratio setting from the
8810A front panel. Note the 8810A device will not accept the command if
device is set to Local mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Return Value:
API_SUCCESS - function is successful
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 64 of 91
Functions
7.6 API8810A_SetRemoteUSB
Format:
_API8810AFUNC int API8810A_SetRemoteUSB
(
int apiNo
)
Function Description:
This function sends the command to set the communication mode to Remote
USB mode. In Remote USB mode, remote “set” commands will be accepted if
the command is received from the USB interface.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
7.7 API8810A_SetRemoteEthernet
Format:
_API8810AFUNC int API8810A_SetRemoteEthernet
(
int apiNo
)
Function Description:
This function sends the command to set the communication mode to Remote
Ethernet mode. In Remote Ethernet mode, remote “set” commands will be
accepted if the command is received from the Ethernet interface.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Return Value:
API_SUCCESS - function is successful
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 65 of 91
Functions
7.8 API8810A_SetRemoteIEEE
Format:
_API8810AFUNC int API8810A_SetRemoteIEEE
(
int apiNo
)
Function Description:
This function sends the command to set the communication mode to Remote
IEEE mode. In Remote IEEE mode, remote “set” commands will be accepted if
the command is received from the IEEE interface.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
7.9 API8810A_SetRemoteJ1
Format:
_API8810AFUNC int API8810A_SetRemoteJ1
(
int apiNo
)
Function Description:
This function sends the command to set the communication mode to Remote J1
mode. In Remote J1 mode, remote “set” commands will be accepted if the
command is received from the J1 interface.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Return Value:
API_SUCCESS - function is successful
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 66 of 91
Functions
7.10 API8810A_SetAngleDisplayFormat
Format:
_API8810AFUNC int API8810A_SetAngleDisplayFormat
(
int apiNo,
int nDisplayFormat
)
Function Description:
This function sends the command to set the angle display format. Note the
8810A device will not accept the command if its remote communication
configuration does not match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nDisplayFormat – angle format to display on the 8810A
Angle Display Format Types:
ANGLE_FMT_360 0
ANGLE_FMT_180 1
ANGLE_FMT_MIN 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported with API8810A_NATIVE,
IEEE_API8810_NATIVE, IEEE_API8810_FX2 and IEEE_API8810_SR103
API_ERROR_RANGE_SET – parameter specified is out-of-range
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
7.11 API8810A_GetAngleDisplayFormat
Format:
_API8810AFUNC int API8810A_GetAngleDisplayFormat
(
int apiNo,
int *pnDisplayFormat
)
Function Description:
This function sends the command to get the angle display format set in the
8810A.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 67 of 91
Functions
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pnDisplayFormat – pointer to location to return the angle display format
Angle Display Format Types:
ANGLE_FMT_360 0
ANGLE_FMT_180 1
ANGLE_FMT_MIN 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_RANGE_GET – value retrieved is out-of-range
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
7.12 API8810A_SetCh1Input
Format:
_API8810AFUNC int API8810A_SetCh1Input
(
int apiNo,
int nCh1InputConnector
)
Function Description:
This function sends the command to set the Channel 1 input connector
configuration. Note the 8810A device will not accept the command if its
remote communication configuration does not match the communication
connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nCh1InputConnector – Channel 1 input connector configuration on the 8810A
Channel 1 Input Configuration Types:
CH1_INPUT_FRONT_CONNECTOR 0
CH1_INPUT_BACK_CONNECTOR 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 68 of 91
Functions
7.13 API8810A_GetCh1Input
Format:
_API8810AFUNC int API8810A_GetCh1Input
(
int apiNo,
int *pnCh1InputConnector
)
Function Description:
This function sends the command to get the Channel 1 input connector
configuration set in the 8810A.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pnCh1InputConnector – pointer to location to return the Channel 1 input
connector configuration
Channel 1 Input Configuration Types:
CH1_INPUT_FRONT_CONNECTOR 0
CH1_INPUT_BACK_CONNECTOR 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
7.14 API8810A_SetTouchscreenState
Format:
_API8810AFUNC int API8810A_SetTouchscreenState
(
int apiNo,
int nTouchscreenState
)
Function Description:
This function sends the command to set the touch screen configuration.
Note the 8810A device will not accept the command if its remote
communication configuration does not match the communication connection
mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nTouchscreenState – Touch screen configuration on the 8810A
Touch screen Configuration Types:
TOUCHSCREEN_DISABLED 0
TOUCHSCREEN_ENABLED 1
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 69 of 91
Functions
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
7.15 API8810A_GetTouchscreenState
Format:
_API8810AFUNC int API8810A_GetTouchscreenState
(
int apiNo,
int *pnTouchscreenState
)
Function Description:
This function sends the command to get the touch screen configuration set
in the 8810A.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pnTouchscreenState – pointer to location to return the touch screen
configuration
Touchscreen Configuration Types:
TOUCHSCREEN_DISABLED 0
TOUCHSCREEN_ENABLED 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
7.16 API8810A_SetDisplayState
Format:
_API8810AFUNC int API8810A_SetDisplayState
(
int apiNo,
int nDisplayState
)
Function Description:
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 70 of 91
Functions
This function sends the command to set the main display state.
Note the 8810A device will not accept the command if its remote
communication configuration does not match the communication connection
mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nDisplayState – Display configuration on the 8810A
Display Configuration Types:
CHAN1_DISPLAY 0
CHAN2_DISPLAY 1
CHAN1_ANALOG_DISPLAY 2
CHAN2_ANALOG_DISPLAY 3
DUAL_DISPLAY 4
REFERENCE_DISPLAY 5
CHARTING_DISPLAY 6
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_RANGE– data returned from 8810A is not valid for command sent
References for this function:
None.
7.17 API8810A_GetDisplayState
Format:
_API8810AFUNC int API8810A_GetDisplayState
(
int apiNo,
int *pnDisplayState
)
Function Description:
This function sends the command to get the main display configuration on
the 8810A.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pnDisplayState – pointer to location to return the main screen
configuration state.
Main Screen Configuration Types:
CHAN1_DISPLAY 0
CHAN2_DISPLAY 1
CHAN1_ANALOG_DISPLAY 2
CHAN2_ANALOG_DISPLAY 3
DUAL_DISPLAY 4
REFERENCE_DISPLAY 5
CHARTING_DISPLAY 6
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 71 of 91
Functions
UNKNOWN_DISPLAY -1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_RANGE_GET – value retrieved is out-of-range
API_ERROR_WRITE - unable to send command to 8810A
7.18 API8810A_ResetDefaultValues
Format:
_API8810AFUNC int API8810A_ResetDefaultValues
(
int apiNo
)
Function Description:
This function sends the command to set the device setting back to the
factory default settings. This command will also reset the calibration
values and a calibration of the device is recommended after issuing this
command. Note the 8810A device will not accept the command if its remote
communication configuration does not match the communication connection
mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_RANGE– data returned from 8810A is not valid for command sent
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 72 of 91
Functions
8.1 API8810A_GetCalState
Format:
_API8810AFUNC int API8810A_GetCalState
(
int apiNo,
char *pszCalState
)
Function Description:
This function sends the command to get the calibration state of the 8810A.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pszCalState – pointer to location to return the calibration state string
Return values:
“CAL DONE”
“CALIBRATING”
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
8.2 API8810A_Calibrate
Format:
_API8810AFUNC int API8810A_Calibrate
(
int apiNo
)
Function Description:
This function sends the command to calibrate the 8810A. Note the 8810A
device will not accept the command if its remote communication
configuration does not match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
Return Value:
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 73 of 91
Functions
8.3 API8810A_SetAPIPeriodicCalState
Format:
_API8810AFUNC int API8810A_SetAPIPeriodicCalState
(
int apiNo,
int nPeriodicCalState
)
Function Description:
This function sends the command to turn on or off the periodic
calibration for both channels. Note the 8810A device will not accept the
command if its remote communication configuration does not match the
communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nPeriodicCalState – Turn on or off periodic calibration for both channels
Periodic Calibration Types:
PERIODIC_CAL_DISABLED 0
PERIODIC_CAL_ENABLED 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
8.4 API8810A_GetAPIPeriodicCalState
Format:
_API8810AFUNC int API8810A_GetAPIPeriodicCalState
(
int apiNo,
int *pnPeriodicCalState
)
Function Description:
This function sends the command to get the periodic calibration setting.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 74 of 91
Functions
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pnPeriodicCalState – pointer to location to return the periodic
calibration state
Periodic Calibration Types:
PERIODIC_CAL_DISABLED 0
PERIODIC_CAL_ENABLED 1
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 75 of 91
Functions
9.1 API8810A_GetSampleRate
Format:
_API8810AFUNC int API8810A_GetSampleRate
(
int apiNo,
int *pnSampleRate,
int *pnSampleRateUnit
)
Function Description:
This function sends the command to get the sample rate set for angle,
angle error, or angle velocity buffering in the 8810A.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pnSampleRate – pointer to location to return the sample rate
pnSampleRateUnit – pointer to location to return the sample rate units
Sample Rate Unit Types:
SAMPLE_RATE_MSEC 0
SAMPLE_RATE_SEC 1
SAMPLE_RATE_MIN 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
9.2 API8810A_SetSampleRate
Format:
_API8810AFUNC int API8810A_SetSampleRate
(
int apiNo,
int nSampleRate,
int nSampleRateUnit
)
Function Description:
This function sends the command to set the sample rate set for angle,
angle error, or angle velocity buffering in the 8810A. Note the 8810A
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 76 of 91
Functions
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nSampleRate – Sample Rate to set for data buffering
nSampleRateUnit – Sample Rate Unit to set for data buffering
Sample Rate Unit Types:
SAMPLE_RATE_MSEC 0
SAMPLE_RATE_SEC 1
SAMPLE_RATE_MIN 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_RANGE_SET – parameter specified is out-of-range
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
9.3 API8810A_GetSampleType
Format:
_API8810AFUNC int API8810A_GetSampleType
(
int apiNo,
char *pszSampleType
)
Function Description:
This function sends the command to get the data type being buffering in
the 8810A.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pszSampleType – pointer to location to return the data type being buffered
Return values:
“ANG”
“ANGERR”
“VEL”
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 77 of 91
Functions
9.4 API8810A_SetSampleType
Format:
_API8810AFUNC int API8810A_SetSampleType
(
int apiNo,
int nSampleType
)
Function Description:
This function sends the command to set the data type to buffer in the
8810A. Note the 8810A device will not accept the command if its remote
communication configuration does not match the communication connection
mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nSampleType – Sample Rate to set for data buffering
Sample Data Types:
BUF_ANGLE 0
BUF_ANGERR 1
BUF_VELOCITY 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_RANGE_SET – parameter specified is out-of-range
API_ERROR_WRITE - unable to send command to 8810A
9.5 API8810A_GetPlotChan
Format:
_API8810AFUNC int API8810A_GetPlotChan
(
int apiNo,
char *pszPlotChan
)
Function Description:
This function sends the command to get the channel being plotted in the
8810A chart.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pszPlotChan – pointer to location to return the channel being plotted
Return values:
“BOTH”
“CH1”
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 78 of 91
Functions
“CH2”
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
9.6 API8810A_SetPlotChan
Format:
_API8810AFUNC int API8810A_SetPlotChan
(
int apiNo,
int nPlotChan
)
Function Description:
This function sends the command to set the channel to plot in the 8810A.
Note the 8810A device will not accept the command if its remote
communication configuration does not match the communication connection
mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nPlotChan – Channel to plot
Channel Plot Types:
PLOT_BOTH_CHAN 0
PLOT_CHAN1 1
PLOT_CHAN2 2
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_RANGE_SET – parameter specified is out-of-range
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
9.7 API8810A_GetAngleErrStep
Format:
_API8810AFUNC int API8810A_GetAngleErrStep
(
int apiNo,
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 79 of 91
Functions
double *pdAngErrStep
)
Function Description:
This function sends the command to get the angle step value for angle
error comparison for 8810A data buffering.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdAngErrStep – pointer to location to return the angle step value for
angle error comparison for 8810A data buffering.
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
9.8 API8810A_SetAngleErrStep
Format:
_API8810AFUNC int API8810A_SetAngleErrStep
(
int apiNo,
double dAngErrStep
)
Function Description:
This function sends the command to set the angle step value for angle
error comparison for 8810A data buffering. Note the 8810A device will not
accept the command if its remote communication configuration does not
match the communication connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
dAngErrStep – Angle step value for angle error comparison for data
buffering
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 80 of 91
Functions
9.9 API8810A_GetLowerRange
Format:
_API8810AFUNC int API8810A_GetLowerRange
(
int apiNo,
double *pdLowerRange
)
Function Description:
This function sends the command to get the expected lower range value for
8810A charting.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdLowerRange – pointer to location to return expected lower range value
for 8810A charting.
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
9.10 API8810A_SetLowerRange
Format:
_API8810AFUNC int API8810A_SetLowerRange
(
int apiNo,
double dLowerRange
)
Function Description:
This function sends the command to set the expected lower range value for
8810A charting. Note the 8810A device will not accept the command if its
remote communication configuration does not match the communication
connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
dLowerRange – Expected lower range value for 8810A charting
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 81 of 91
Functions
9.11 API8810A_GetUpperRange
Format:
_API8810AFUNC int API8810A_GetUpperRange
(
int apiNo,
double *pdUpperRange
)
Function Description:
This function sends the command to get the expected upper range value for
8810A charting.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pdUpperRange – pointer to location to return expected upper range value
for 8810A charting.
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
9.12 API8810A_SetUpperRange
Format:
_API8810AFUNC int API8810A_SetUpperRange
(
int apiNo,
double dUpperRange
)
Function Description:
This function sends the command to set the expected upper range value for
8810A charting. Note the 8810A device will not accept the command if its
remote communication configuration does not match the communication
connection mode.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
dUpperRange – Expected upper range value for 8810A charting
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 82 of 91
Functions
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
References for this function:
None.
9.13 API8810A_GetRecordingState
Format:
_API8810AFUNC int API8810A_GetRecordingState
(
int apiNo,
char *pszRecState
)
Function Description:
This function sends the command to get the recording state for 8810A data
buffering.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pszRecState – pointer to location to return the recording state for 8810A
data buffering
Return values:
“NOT RECORDING”
“RECORDING”
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
9.14 API8810A_SetRecordingState
Format:
_API8810AFUNC int API8810A_SetRecordingState
(
int apiNo,
int nRecState
)
Function Description:
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 83 of 91
Functions
9.15 API8810A_GetBufferCnt
Format:
_API8810AFUNC int API8810A_GetBufferCnt
(
int apiNo,
int *pnBufCnt
)
Function Description:
This function sends the command to get the number of data elements in
8810A data buffer.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
pnBufCnt – pointer to location to return the number of data elements in
data buffer.
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 84 of 91
Functions
9.16 API8810A_GetBufferData
Format:
_API8810AFUNC int API8810A_GetBufferData
(
int apiNo,
int nChannel,
int nStartRec,
int nEndRec,
char *pszBufData
)
Function Description:
This function sends the command to get data elements in 8810A data buffer.
The number of data elements is the same for Channel 1 and Channel 2. Note
data buffer retrieval is available only via USB or Ethernet. Via USB, the
maximum number of records returned for each call is 5 data elements. Via
Ethernet, the maximum number of records returned for each call is 150 data
elements.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
nChannel – Channel to retrieve data
nStartRec – Record number (1 for the first record) to first element to
retrieve
nEndRec – Record number of last element to retrieve
pszBufData – pointer to location to return data elements in data buffer
that has been retrieved.
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_FUNC_NOT_SUPPORTED – function supported only with
API8810A_NATIVE
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
Prior to calling this function, call API8810A_GetBufferCnt() to determine
the number of elements in the data buffer. The number of elements is the
same for Channel 1 and Channel 2.
Remarks:
Data retrieval of buffered data from the 8810A is available only via the
USB (5 data elements maximum with each call) or Ethernet (150 data
elements maximum with each call) interface.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 85 of 91
Functions
10.1 API8810A_MaxRetry
Format:
_API8810AFUNC int API8810A_MaxRetry
(
int nMaxRetry
)
Function Description:
This function sets the maximum retries to send a command or read a
response that will be made when communicating via IEEE. The default value
is 0.
Parameters:
nMaxRetry – maximum retries for IEEE communication
Return Value:
API_SUCCESS - function is successful
10.2 API8810A_LastCmdSent
Format:
_API8810AFUNC int API8810A_LastCmdSent
(
int apiNo,
char szLastCommand[]
)
Function Description:
This function returns the last command sent via IEEE, USB or Ethernet to
the 8810A device.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
szLastCommand – last command sent to 8810A
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 86 of 91
Functions
10.3 API8810A_WriteCommand
Format:
_API8810AFUNC int API8810A_WriteCommand
(
int apiNo,
char szCommand[]
)
Function Description:
This function sends the command to the 8810A device.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
szCommand – command to send to 8810A
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_WRITE - unable to send command to 8810A
10.4 API8810A_QueryCommand
Format:
_API8810AFUNC int API8810A_QueryCommand
(
int apiNo,
char szCommand[],
char *pszResponse
)
Function Description:
This function sends the command to the 8810A device and waits for the
8810A to respond.
Parameters:
apiNo - Logical API number assigned to connection with 8810A (1-MAX_API)
szCommand – command to send to 8810A
pszResponse – pointer to location to return the 8810A response to the
command sent.
Return Value:
API_SUCCESS - function is successful
API_ERROR_APINO - invalid apiNo parameter
API_ERROR_WRITE - unable to send command to 8810A
API_ERROR_DATA – data returned from 8810A is not valid for command sent
References for this function:
None.
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 87 of 91
Appendix B-Error Codes
/* Mode Type */
#define RESOLVER 0
#define SYNCHRO 1
/* DA Format Type */
#define DA_ANGLE_OUTPUT 0
#define DA_VELOCITY_OUTPUT 1
#define ANG_DIFF_ENABLED 1
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 89 of 91
Appendix B-Error Codes
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 90 of 91
Revision History
Revision History
Function Reference
North Atlantic Industries, Inc. 631.567.1100 Revision 3.0.0.2 Manual for 8810A
110 Wilbur Place, Bohemia, NY 11716 www.naii.com / e-mail:[email protected] Page 91 of 91