
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 233
strcpy (tmpchar, InBuffer);
Fmt (InBuffer, "%s<%s[i*w*]", pos+1, (strlen(tmpchar)-pos)-1, tmpchar);
}
else
return RGS_ERROR_INVALID_CONFIGURATION;
// PN number
pos = 0;
if (strlen(InBuffer)>0)
{
Fmt (pn, "%s<%s[i0w*]", pos, InBuffer);
RemoveSurroundingWhiteSpace (pn);
}
else
return RGS_ERROR_INVALID_CONFIGURATION;
return RGS_status;
}
//=============================================================================
// Function: Reset
// Purpose: This function resets the instrument. If the reset function
// is not supported by the instrument, this function returns
// the warning VI_WARN_NSUP_RESET.
//=============================================================================
ViStatus _VI_FUNC RGS_reset (ViInt16 RGSGen)
{
ViStatus RGS_status = VI_SUCCESS;
if ((RGSGen <= 0) || (RGSGen > MAX_SESSIONS))
RGS_status = ERR_PARAMETER1; // set error status code
// Initialize the instrument to a known state
if ((RGS_status = RGS_writeInstrData (RGSGen, ":RGS:RESET",
WAITTIME0_02))< 0)
return RGS_status;
Delay (WAITTIME10_00);
if ((RGS_status = RGS_readInstrData (RGSGen, 150, InBuffer,
&bytesRead)) < 0)
if(FindPattern (InBuffer, 0, -1, "*", 0, 0) == -1)
return RGS_ERROR_COMMAND_ERROR;
return RGS_status;
Example Program (cont)