
Operation,
Remote Operation
139187 / Rev. 500
RGS-2000NG TCAS Test Set Operation Manual
1-2-5
September 2021
Subject to Export Control. See Cover Page for details.
Page 213
#define RGS_ERROR_INVALID_CONFIGURATION (VI_INSTR_ERROR_
0xF0L)//0xBFFC09F0
#define RGS_ERROR_INVALID_COMMAND (VI_INSTR_ERROR_ 0xF1L)//0xBFFC09F1
#define RGS_ERROR_NAC (VI_INSTR_ERROR_ 0xF2L)//0xBFFC09F2
#define RGS_ERROR_COMMAND_ERROR (VI_INSTR_ERROR_ 0xF3L)//0xBFFC09F3
#define RGS_ERROR_NO_DATA (VI_INSTR_ERROR_ 0xF4L)//0xBFFC09F4
#define RGS_ERROR_CMD_WAIT (VI_INSTR_ERROR_ 0xF5L)//0xBFFC09F5
#define RGS_ERROR_SESSION_ALREADY_EXITS (VI_INSTR_ERROR_
0xF6L)//0xBFFC09F6
#define RGS_ERROR_TOO_MANY_SESSIONS (VI_INSTR_ERROR_
0xF7L)//0xBFFC09F7
#define DEFAULT_BAUD 115200 // Default baud rate
#define DEFAULT_DBITS 8 // Default data bits
#define DEFAULT_SBIT 1 // Default stop bit
#define DEFAULT_PARITY 0 // Default parity
#define OFF 0
#define ON 1
#define RGSGen1 1
#define RGSGen2 2
typedef struct {
ViInt32 baudrate;
ViInt32 databits;
ViInt32 parity;
ViInt32 stopbits;
ViInt16 connect; // ON or OFF
ViInt32 resourcename; // 0-device name; 1-lan IP address
} typRGSGenConfigs;
#ifdef __RGS_GLOBALS
static typRGSGenConfigs RGSGenConfig; // config parameters
#else // __RGSGEN_GLOBALS is not defined
extern typRGSGenConfigs RGSGenConfig; // config parameters
#endif // __RGSGEN_GLOBALS
//=============================================================================
//= GLOBAL USER-CALLABLE FUNCTION DECLARATIONS (Exportable Functions) =========
//=============================================================================
RGS_EXT ViStatus _VI_FUNC RGS_init (ViInt16 RGSGen, ViChar RGSGenType[],
ViChar RGSGenPartNumber[], ViChar RGSGenBus[],
ViChar primaryAddr[],ViChar secondary Addr[]);
RGS_EXT ViStatus _VI_FUNC RGS_close (ViInt16 RGSGen);
Example Program (cont)