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 217
ViStatus RGS_nxtCmdWait (ViSession);
ViStatus RGS_nxtCmdLog (ViSession, ViReal64 waitToNxtCmd);
ViBoolean RGS_invalidViBooleanRange (ViBoolean);
static void ClearStoredBuffer(ViSession);
static long ReadAndStoreIntoBuffer(ViSession);
//=============================================================================
//=================== User Callable Functions =================================
//=============================================================================
/*=============================================================================
This is a list of error codes that may be returned from the callable
functions below.
3FFF0005 The specified termination character was read.
3FFF0006 The specified number of bytes was read.
BFFF0000 Miscellaneous or system error occurred.
BFFF000E Invalid session handle.
BFFF0015 Timeout occurred bef ore operation could complete.
FFFFFC16 Device not installed
FFFFFC17 Invalid device selected
FFFFFC18 Function not available
BFFF0034 Violation of raw write protocol occurred.
BFFF0035 Violation of raw read protocol occurred.
BFFF0036 Device reported an output protocol error.
BFFF0037 Device reported an input protocol error.
BFFF0038 Bus error occurred during transfer.
BFFF003A Invalid setup (attributes are not consistent).
BFFF005F No listeners condition was detected.
BFFF0060 This interface is not the controller in charge.
BFFF0067 Operation is not supported on this session.
=============================================================================*/
//=============================================================================
// Function: RGS_Init
// Purpose: This function initializes the RGSGen specified in the "Type"
// input parameter to a known state.
// Parameter List: RGSGen - Generator number, RGSGen1 or RGSGen2
// RGSGenType[] - "RGS-2000NG" or "NOT INSTALLED"
// RGSGenPartNumber[] - 113956
// RGSGenBus[] - "GPIB", "RS232" or "ETHERNET"
// primaryAddr[] - This is the address used for the unit.
// GPIB: 0-32, RS232 1-256 for ethernet it
// it should be similar to 10.168.168.2
// secondary_Adress[] - usually not used set to ""
// Return Values: Zero on success, non-zero otherwise
Example Program (cont)