Section 9: Keithley External Control Interface (KXCI)
Model 4200A-SCS Parameter Analyzer Reference Manual
9-88
4200A-901-01 Rev. C / February 2017
Driver functions
The KXCIclient.dll driver has the following functions:
int OpenKXCIConnection_C(char *
IPAddrStr
, int
PortNum
, int *
err
);
•
IPAddrStr
:
IP address in string format
nnn.nn.nn.nn
(for example, 129.22.35.17).
•
PortNum
:
IP Port assigned in KXCI
tab of KCon
.
•
err
:
Socket error code returned by
WSAGetLastError()
.
int SendKXCICommand_C(char *
cmdstr
, char *
ReturnString
, int *
err
);
•
cmdstr
:
KXCI command string, for example, "
DE;CH1;CH2
".
•
ReturnString
:
Data returned by command, if any. If input command results in data to be
returned, it is placed here.
•
err
:
Socket error code returned by
WSAGetLastError()
.
int GetKXCISpollByte_C(unsigned short *
spbyte
, int *
err
);
•
spbyte
:
KXCI spoll byte (same as GPIB byte).
•
err
:
Socket error code returned by
WSAGetLastError()
.
void CloseKXCIConnection_C(void);