Sample Programs

The following example demonstrates how to program the board using the C/C++ programming language under Windows. The example shows how to initialize the DMM, set it up for measurement or trigger settings and get the reading.

To run, enter the following command line:

GxDmmExampleC <Slot> <Function> <Range> <Resolution>

<Slot>
PXI Explorer slot number where the board reside.
<Function>
DMM measurement function:
VDC=set function to Volts DC
IDC=set function to Current DC
VAC=set function to Volts AC, AC Coupled
IAC=set function to Current AC AC Coupled
VAC_DC_CPL=set function to Volts AC, DC Coupled
IAC_DC_CPL=set function to Current AC DC Coupled
TWO_WIRE=set function to 2 Wire Resistance
FOUR_WIRE=set function to 4 Wire Resistance
<Range>
Measurement range: A floating point value approximating the value to be measured.
<Resolution>
One of the following resolutions:
4=set resolution to 3.5 digits
5=set resolution to 4.5 digits
6=set resolution to 5.5 digits
7=set resolution to 6.5 digits