
Software
R&S
®
TS-PSAM
36
User Manual 1142.9878.12 ─ 12
if ( ! errorOccurred )
{
DCPWR_Setup (0, benchName, &residDcpwr,
&errorOccurred, &errorCode, errorMessage);
cs("DCPWR_Setup");
}
if ( ! errorOccurred )
{
DMM_Setup (0, benchName, &residDmm,
&errorOccurred, &errorCode, errorMessage);
cs("DMM_Setup");
}
if ( ! errorOccurred )
{
runDcsTest ( );
runDmmTest ( );
}
/* cleanup libraries */
if (residDmm != RESMGR_INVALID_ID)
{
DMM_Cleanup (0, residDmm, &errorOccurred, &errorCode, errorMessage);
cs("DMM_Cleanup");
}
if (residDcpwr != RESMGR_INVALID_ID)
{
DCPWR_Cleanup (0, residDcpwr, &errorOccurred, &errorCode, errorMessage);
cs("DCPWR_Cleanup");
}
if (residRoute != RESMGR_INVALID_ID)
{
ROUTE_Cleanup (0, residRoute, &errorOccurred, &errorCode, errorMessage);
cs("ROUTE_Cleanup");
}
RESMGR_Cleanup ( 0, &errorOccurred, &errorCode, errorMessage);
cs("RESMGR_Cleanup");
printf("\nPress 'Enter' to terminate\n");
getchar();
return 0;
}
/* FUNCTION ****************************************************************/
/* checks the return status of a library call
Programming Example