
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 215
#define WAITTIME10_00 10.00 // Seconds wait time
#define TIME_OUT_NORM_VAL 3000
#define MAX_SESSIONS 2
struct {
ViSession session;
ViReal64 startTime;
ViReal64 curWaitTime;
ViChar resourceName[40];
} sessionInfo[MAX_SESSIONS] = {{0,0,0,""},{0,0,0,""}};
#define BUFFER_SIZE 512L // File I/O buffer size
//=============================================================================
//= Driver Specific Error/Warning Codes =====================================
//=============================================================================
#define NOT_AVAILABLE 0xFFFFFC18 // Function Not Available (-1000)
#define INVALID_SELECTION 0XFFFFFC17 // Invalid device selected (-1001)
#define NOT_INSTALLED 0XFFFFFC16 // Device Not installed (-1002)
#define ABORT_FLAG_SET 0XFFFFFC15 // Test Exec. Abort Flag Set (-1003)
#define NOT_INITIALIZED 0x3FFFFC01 // Instrument Not Initailized Warning
#define ERR_PARAMETER1 0XFFFFFC13 // Parameter 1 Out-Of-Range. (-1005)
#define ERR_PARAMETER2 0XFFFFFC12 // Parameter 2 Out-Of-Range. (-1006)
#define ERR_PARAMETER3 0XFFFFFC11 // Parameter 3 Out-Of-Range. (-1007)
#define ERR_PARAMETER4 0XFFFFFC10 // Parameter 4 Out-Of-Range. (-1008)
#define ERR_PARAMETER5 0XFFFFFC0F // Parameter 5 Out-Of-Range. (-1009)
#define ERR_PARAMETER6 0XFFFFFC0E // Parameter 6 Out-Of-Range. (-1010)
#define ERR_PARAMETER7 0XFFFFFC0D // Parameter 7 Out-Of-Range. (-1011)
#define ERR_PARAMETER8 0XFFFFFC0C // Parameter 8 Out-Of-Range. (-1012)
#define ERR_PARAMETER9 0XFFFFFC0B // Parameter 9 Out-Of-Range. (-1013)
#define ERR_PARAMETER10 0XFFFFFC0A // Parameter 10 Out-Of-Range. (-1014)
#define ERR_PARAMETER11 0XFFFFFC09 // Parameter 11 Out-Of-Range. (-1015)
#define NOT_SUPPORTED 0XFFFFFC03 // Command Not Supported. (-1021)
#define OPTION_MISSING 0XFFFFFC02 // Option Not Installed. (-1022)
#define WRONG_INSTRUMENT 0XFFFFFC01 // Incorrect Instrument (-1023)
#define INVAL_TERMINATION 0XFFFFFC00 // Invalid term character(s). (-1024)
ViSession RGSGenSession[MAX_SESSIONS]; // session handle
struct device RGSGenDevice[MAX_SESSIONS]; // device parameters
ViInt16 RGSGenConnect[MAX_SESSIONS];
//=============================================================================
Example Program (cont)