
Software
R&S
®
TS-PSM5
37
User Manual 1178.2809.02 ─ 01
the current directly to the ampere meter of the TS-PSAM module
to perform a more sensitive measurement of the standby current
*/
/* disconnect DMM_HI and DMM_LO from local analog bus lines b1 and
d1 */
ROUTE_Execute ( 0, residRoute, "DMM_HI | $LABb1, DMM_LO | $LABd1",
&errorOccurred, &errorCode, errorMessage);
/* disconnect the current-voltage-converter of TS-PSM5 channel 6
from analog bus line b1;
ROUTE_Execute ( 0, residRoute, "PSM5_CH6_IV | $LABb1 | $ABb1,
PSM5_LABD1 | $ABd1",
&errorOccurred, &errorCode, errorMessage);
/* set dmm function, resolution and auto ranging */
DMM_Conf_Measurement ( 0, residDmm, "DC_CURRENT", 0.0,
"AUTO_RANGE_ON", 1.0e-4,
&errorOccurred, &errorCode, errorMessage);
/* connect DMM_LO to local analog bus line a2 and DMM_HI to analog
bus line c1 */
ROUTE_Execute ( 0, residRoute, "DMM_LO > $LABa2, DMM_HI > $LABc1",
&errorOccurred, &errorCode, errorMessage);
/* bypass the high-power-relay and current-voltage-converter of
TS-PSM5 channel 5 with the ampere meter of TS-PSAM */
ROUTE_Execute ( 0, residRoute,
"PSM5_CH5_COM > $LABc1 > $ABc1,
PSM5_CH5_NO > $LABa2 > $ABa2",
&errorOccurred, &errorCode, errorMessage);
/* open the high-power relay on TS-PSM5 channel 5;
wait for debounce for all switch modules */
ROUTE_Execute ( 0, residRoute, "PSM5_CH5_NO | PSM5_CH5_COM, ?#",
&errorOccurred, &errorCode, errorMessage);
/* measure the current throught the ampere meter of TS-PSAM */
DMM_Read ( 0, residDmm, 1.0, 1, ¤tResultLoadStandby,
&resultsCount,
&errorOccurred, &errorCode, errorMessage);
}
/* disconnect all existing connections */
ROUTE_Execute ( 0, residRoute, "||",
&errorOccurred, &errorCode, errorMessage);
/* close the libraries */
DMM_Cleanup (0, residDmm, &errorOccurred, &errorCode, errorMessage);
Programming with GTSL libraries