![Rohde & Schwarz TS-PSAM User Manual Download Page 33](http://html.mh-extra.com/html/rohde-and-schwarz/ts-psam/ts-psam_user-manual_1477883033.webp)
Software
R&S
®
TS-PSAM
31
User Manual 1142.9878.12 ─ 12
static void runMuTest ( void )
{
ViReal64 reading;
/* configure DCS earth tied */
sta = rspsam_cnx_Gnd(vi, RSPSAM_VAL_INSTRLINE_DCS_LO,
RSPSAM_VAL_RELAY_CLOSED);
chk ("rspsam_cnx_Gnd");
/* connect DCS to local analog bus */
sta = rspsam_Connect(vi, "DCS_HI","ABa1");
chk ("rspsam_Connect");
sta = rspsam_Connect(vi, "DCS_LO","ABd1");
chk ("rspsam_Connect");
/* connect MU to local analog bus */
sta = rspsam_Connect(vi, "MU_HI","ABb1");
chk ("rspsam_Connect");
sta = rspsam_Connect(vi, "MU_LO","ABc1");
chk ("rspsam_Connect");
/* configure DC supply */
sta = rspsam_dcs_ConfigureCurrentLimit(vi, 0.010);
chk ("rspsam_dcs_ConfigureCurrentLimit");
sta = rspsam_dcs_ConfigureVoltageLevel(vi, 1.1);
chk ("rspsam_dcs_ConfigureVoltageLevel");
/* select 5 V mesurement range */
sta = rspsam_ConfigureMeasurement(vi, RSPSAM_VAL_DC_VOLTS, 5.0, 0.001);
chk ("rspsam_ConfigureMeasurement");
/* switch on DC supply */
sta = rspsam_dcs_ConfigureOutputEnabled(vi, VI_TRUE);
chk ("rspsam_dcs_ConfigureOutputEnabled");
/* wait until configurations have settled; perform measurement */
sta = rspsam_Read(vi, 5000, & reading);
chk ("rspsam_Read");
/* switch off DC supply */
sta = rspsam_dcs_ConfigureOutputEnabled(vi, VI_FALSE);
chk ("rspsam_dcs_ConfigureOutputEnabled");
/* disconnect components from local analog bus */
sta = rspsam_DisconnectAll(vi);
chk ("rspsam_DisconnectAll");
Programming Example