
Operation,
Remote Operation
1-2-5
RGS-2000NG TCAS Test Set Operation Manual
139187 / Rev. 500
Page 214
Subject to Export Control. See Cover Page for details.
September 2021
RGS_EXT ViStatus _VI_FUNC RGS_reset (ViInt16 RGSGen);
RGS_EXT ViStatus _VI_FUNC RGS_writeInstrData (ViInt16 RGSGen,
ViString writeBuffer,
ViReal64 waitToNxtCmd);
RGS_EXT ViStatus _VI_FUNC RGS_readInstrData (ViInt16 RGSGen,
ViInt32 numberBytesToRead,
ViChar _VI_FAR readBuffer[],
ViPInt32 numBytesRead);
RGS_EXT ViStatus _VI_FUNC RGS_errorQuery (ViInt16 RGSGen,
ViInt32 *errorCode,
ViChar _VI_FAR message[]);
#if defined(__cplusplus) || defined(__cplusplus__)
}
#endif
#endif
//=============================================================================
//=== END INCLUDE FILE ========================================================
//=============================================================================
//=============================================================================
// Title: RGS_Driver.c
// Purpose: Driver functions to control the RGS-2000NG using
// GPIB, Ethernet or Serial.
//
// Created on: 4/10/2017 at 10:12:29 AM by VIAVI Test Solutions.
// Copyright: VIAVI AvComm. All Rights Reserved.
//=============================================================================
#include <utility.h>
#include <visa.h>
#include <formatio.h>
#include <toolbox.h>
#include "RGS_Driver.h"
#include "test_sys.h"
#define WAITTIME0_01 0.01 // Seconds wait time
#define WAITTIME0_02 0.02 // Seconds wait time
#define WAITTIME0_03 0.03 // Seconds wait time
#define WAITTIME1_00 1.00 // Seconds wait time
#define WAITTIME5_00 5.00 // Seconds wait time
#define WAITTIME7_00 7.00 // Seconds wait time
Example Program (cont)