SDDS ToolKit Programs and Libraries for C and Python
|
Communication interface for Agilent Oscilloscopes via VXI-11 protocol.
This software enables Ethernet-based communication with Agilent oscilloscopes using the VXI-11 protocol. It supports sending commands, queries, and retrieving responses for both control and data acquisition tasks. The tool facilitates integration into automated testing systems.
Required | Description |
---|---|
-ip <scope_ip> | Specifies the IP address of the Agilent oscilloscope. |
-c <command> | The command or query to send to the oscilloscope. |
Optional | Description |
---|---|
-h | Displays help information and usage instructions. |
Definition in file agilentcomm.cpp.
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <rpc/rpc.h>
#include <pthread.h>
Go to the source code of this file.
Typedefs | |
using | Device_Link = long |
using | Device_Flags = long |
using | Device_ErrorCode = long |
using | VXI11_CLIENT = CLIENT |
using | VXI11_LINK = Create_LinkResp |
Functions | |
bool | sc (const char *con, const char *var) |
int | vxi11_open_device (const char *ip, CLINK *clink) |
int | vxi11_open_device (const char *ip, CLINK *clink, const char *device) |
int | vxi11_open_device (const char *ip, CLIENT **client, VXI11_LINK **link, const char *device) |
int | vxi11_open_link (const char *ip, CLIENT **client, VXI11_LINK **link, const char *device) |
int | vxi11_send (CLINK *clink, const char *cmd) |
int | vxi11_send (CLINK *clink, const char *cmd, unsigned long len) |
int | vxi11_send (CLIENT *client, VXI11_LINK *link, const char *cmd) |
int | vxi11_send (CLIENT *client, VXI11_LINK *link, const char *cmd, unsigned long len) |
int | vxi11_close_device (const char *ip, CLINK *clink) |
int | vxi11_close_device (const char *ip, CLIENT *client, VXI11_LINK *link) |
int | vxi11_close_link (const char *ip, CLIENT *client, VXI11_LINK *link) |
double | vxi11_obtain_double_value (CLINK *clink, const char *cmd) |
double | vxi11_obtain_double_value (CLINK *clink, const char *cmd, unsigned long timeout) |
long | vxi11_send_and_receive (CLINK *clink, const char *cmd, char *buf, unsigned long buf_len, unsigned long timeout) |
long | vxi11_receive (CLINK *clink, char *buffer, unsigned long len) |
long | vxi11_receive (CLIENT *client, VXI11_LINK *link, char *buffer, unsigned long len, unsigned long timeout) |
long | vxi11_receive (CLINK *clink, char *buffer, unsigned long len, unsigned long timeout) |
long | vxi11_obtain_long_value (CLINK *clink, const char *cmd, unsigned long timeout) |
long | vxi11_obtain_long_value (CLINK *clink, const char *cmd) |
long | vxi11_receive_data_block (CLINK *clink, char *buffer, unsigned long len, unsigned long timeout) |
enum clnt_stat | create_link_1 (Create_LinkParms *argp, Create_LinkResp *clnt_res, CLIENT *clnt) |
enum clnt_stat | device_write_1 (Device_WriteParms *argp, Device_WriteResp *clnt_res, CLIENT *clnt) |
enum clnt_stat | destroy_link_1 (Device_Link *argp, Device_Error *clnt_res, CLIENT *clnt) |
enum clnt_stat | device_read_1 (Device_ReadParms *argp, Device_ReadResp *clnt_res, CLIENT *clnt) |
bool_t | xdr_Create_LinkParms (XDR *xdrs, Create_LinkParms *objp) |
bool_t | xdr_Create_LinkResp (XDR *xdrs, Create_LinkResp *objp) |
bool_t | xdr_Device_ErrorCode (XDR *xdrs, Device_ErrorCode *objp) |
bool_t | xdr_Device_Link (XDR *xdrs, Device_Link *objp) |
bool_t | xdr_Device_WriteParms (XDR *xdrs, Device_WriteParms *objp) |
bool_t | xdr_Device_WriteResp (XDR *xdrs, Device_WriteResp *objp) |
bool_t | xdr_Device_Flags (XDR *xdrs, Device_Flags *objp) |
bool_t | xdr_Device_Error (XDR *xdrs, Device_Error *objp) |
bool_t | xdr_Device_ReadParms (XDR *xdrs, Device_ReadParms *objp) |
bool_t | xdr_Device_ReadResp (XDR *xdrs, Device_ReadResp *objp) |
int | main (int argc, char **argv) |
typedef long Device_ErrorCode = long |
Definition at line 44 of file agilentcomm.cpp.
typedef long Device_Flags = long |
Definition at line 43 of file agilentcomm.cpp.
typedef long Device_Link = long |
Definition at line 42 of file agilentcomm.cpp.
using VXI11_CLIENT = CLIENT |
Definition at line 105 of file agilentcomm.cpp.
using VXI11_LINK = Create_LinkResp |
Definition at line 106 of file agilentcomm.cpp.
enum clnt_stat create_link_1 | ( | Create_LinkParms * | argp, |
Create_LinkResp * | clnt_res, | ||
CLIENT * | clnt ) |
Definition at line 345 of file agilentcomm.cpp.
enum clnt_stat destroy_link_1 | ( | Device_Link * | argp, |
Device_Error * | clnt_res, | ||
CLIENT * | clnt ) |
Definition at line 557 of file agilentcomm.cpp.
enum clnt_stat device_read_1 | ( | Device_ReadParms * | argp, |
Device_ReadResp * | clnt_res, | ||
CLIENT * | clnt ) |
Definition at line 654 of file agilentcomm.cpp.
enum clnt_stat device_write_1 | ( | Device_WriteParms * | argp, |
Device_WriteResp * | clnt_res, | ||
CLIENT * | clnt ) |
Definition at line 477 of file agilentcomm.cpp.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 172 of file agilentcomm.cpp.
bool sc | ( | const char * | con, |
const char * | var ) |
Definition at line 264 of file agilentcomm.cpp.
int vxi11_close_device | ( | const char * | ip, |
CLIENT * | client, | ||
VXI11_LINK * | link ) |
Definition at line 536 of file agilentcomm.cpp.
int vxi11_close_device | ( | const char * | ip, |
CLINK * | clink ) |
Definition at line 510 of file agilentcomm.cpp.
int vxi11_close_link | ( | const char * | ip, |
CLIENT * | client, | ||
VXI11_LINK * | link ) |
Definition at line 542 of file agilentcomm.cpp.
double vxi11_obtain_double_value | ( | CLINK * | clink, |
const char * | cmd ) |
Definition at line 568 of file agilentcomm.cpp.
double vxi11_obtain_double_value | ( | CLINK * | clink, |
const char * | cmd, | ||
unsigned long | timeout ) |
Definition at line 572 of file agilentcomm.cpp.
long vxi11_obtain_long_value | ( | CLINK * | clink, |
const char * | cmd ) |
Definition at line 747 of file agilentcomm.cpp.
long vxi11_obtain_long_value | ( | CLINK * | clink, |
const char * | cmd, | ||
unsigned long | timeout ) |
Definition at line 737 of file agilentcomm.cpp.
int vxi11_open_device | ( | const char * | ip, |
CLIENT ** | client, | ||
VXI11_LINK ** | link, | ||
const char * | device ) |
Definition at line 273 of file agilentcomm.cpp.
int vxi11_open_device | ( | const char * | ip, |
CLINK * | clink ) |
Definition at line 268 of file agilentcomm.cpp.
int vxi11_open_device | ( | const char * | ip, |
CLINK * | clink, | ||
const char * | device ) |
Definition at line 292 of file agilentcomm.cpp.
int vxi11_open_link | ( | const char * | ip, |
CLIENT ** | client, | ||
VXI11_LINK ** | link, | ||
const char * | device ) |
Definition at line 323 of file agilentcomm.cpp.
long vxi11_receive | ( | CLIENT * | client, |
VXI11_LINK * | link, | ||
char * | buffer, | ||
unsigned long | len, | ||
unsigned long | timeout ) |
Definition at line 608 of file agilentcomm.cpp.
long vxi11_receive | ( | CLINK * | clink, |
char * | buffer, | ||
unsigned long | len ) |
Definition at line 646 of file agilentcomm.cpp.
long vxi11_receive | ( | CLINK * | clink, |
char * | buffer, | ||
unsigned long | len, | ||
unsigned long | timeout ) |
Definition at line 650 of file agilentcomm.cpp.
long vxi11_receive_data_block | ( | CLINK * | clink, |
char * | buffer, | ||
unsigned long | len, | ||
unsigned long | timeout ) |
Definition at line 751 of file agilentcomm.cpp.
int vxi11_send | ( | CLIENT * | client, |
VXI11_LINK * | link, | ||
const char * | cmd ) |
Definition at line 434 of file agilentcomm.cpp.
int vxi11_send | ( | CLIENT * | client, |
VXI11_LINK * | link, | ||
const char * | cmd, | ||
unsigned long | len ) |
Definition at line 438 of file agilentcomm.cpp.
int vxi11_send | ( | CLINK * | clink, |
const char * | cmd ) |
Definition at line 426 of file agilentcomm.cpp.
int vxi11_send | ( | CLINK * | clink, |
const char * | cmd, | ||
unsigned long | len ) |
Definition at line 430 of file agilentcomm.cpp.
long vxi11_send_and_receive | ( | CLINK * | clink, |
const char * | cmd, | ||
char * | buf, | ||
unsigned long | buf_len, | ||
unsigned long | timeout ) |
Definition at line 581 of file agilentcomm.cpp.
bool_t xdr_Create_LinkParms | ( | XDR * | xdrs, |
Create_LinkParms * | objp ) |
Definition at line 352 of file agilentcomm.cpp.
bool_t xdr_Create_LinkResp | ( | XDR * | xdrs, |
Create_LinkResp * | objp ) |
Definition at line 406 of file agilentcomm.cpp.
bool_t xdr_Device_Error | ( | XDR * | xdrs, |
Device_Error * | objp ) |
Definition at line 564 of file agilentcomm.cpp.
bool_t xdr_Device_ErrorCode | ( | XDR * | xdrs, |
Device_ErrorCode * | objp ) |
Definition at line 418 of file agilentcomm.cpp.
bool_t xdr_Device_Flags | ( | XDR * | xdrs, |
Device_Flags * | objp ) |
Definition at line 506 of file agilentcomm.cpp.
bool_t xdr_Device_Link | ( | XDR * | xdrs, |
Device_Link * | objp ) |
Definition at line 422 of file agilentcomm.cpp.
bool_t xdr_Device_ReadParms | ( | XDR * | xdrs, |
Device_ReadParms * | objp ) |
Definition at line 661 of file agilentcomm.cpp.
bool_t xdr_Device_ReadResp | ( | XDR * | xdrs, |
Device_ReadResp * | objp ) |
Definition at line 727 of file agilentcomm.cpp.
bool_t xdr_Device_WriteParms | ( | XDR * | xdrs, |
Device_WriteParms * | objp ) |
Definition at line 484 of file agilentcomm.cpp.
bool_t xdr_Device_WriteResp | ( | XDR * | xdrs, |
Device_WriteResp * | objp ) |
Definition at line 498 of file agilentcomm.cpp.