![Rohde & Schwarz TS-PSAM User Manual Download Page 35](http://html.mh-extra.com/html/rohde-and-schwarz/ts-psam/ts-psam_user-manual_1477883035.webp)
Software
R&S
®
TS-PSAM
33
User Manual 1142.9878.12 ─ 12
/* configure DMM earth free again; default state */
sta = rspsam_ConfigureGround(vi, VI_FALSE);
chk ("rspsam_ConfigureGround");
/* select default function and range */
sta = rspsam_ConfigureMeasurement(vi, RSPSAM_VAL_DC_VOLTS, 100.0, 0.001);
chk ("rspsam_ConfigureMeasurement");
/* report the result */
if (VI_SUCCESS == sta)
{
printf("Reading: %.1f Ohm\n", reading);
}
}
7.3.2
Programming with GTSL Libraries
This example shows the use of the DCS and MU components with the GTSL libraries
"Route", "Dmm" and "DCPWR". In the first test case, the single components are oper-
ated. Furthermore, the second test shows the application of the resistance measure-
ment function with the DMM channels. In this example, the device under test is con-
nected with the front connector of a TS-PMB matrix module. The matrix and bus cou-
pling relays of the TS-PSAM and TS-PMB modules are automatically controlled by the
signal routing library.
/* Programming example with GTSL libraries
The following configuration files are used in this example:
physical.ini
------------
[device->PSAM]
Description = "TS-PSAM Module in Frame 1 Slot 8"
Type = PSAM
ResourceDesc = PXI6::10::INSTR
Frame = 1
Slot = 8
DriverDll = rspsam.dll
DriverPrefix = rspsam
DriverOption = "Simulate=0,RangeCheck=1"
RioType = PDC
[device->PMB_6]
Description = "TS-PMB Module in Frame 1 Slot 6"
Type = PMB
ResourceDesc = CAN0::0::1::6
Programming Example