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 DCIDC=set function to Current DCVAC=set function to Volts AC, AC CoupledIAC=set function to Current AC AC CoupledVAC_DC_CPL=set function to Volts AC, DC CoupledIAC_DC_CPL=set function to Current AC DC CoupledTWO_WIRE=set function to 2 Wire ResistanceFOUR_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 digits5=set resolution to 4.5 digits6=set resolution to 5.5 digits7=set resolution to 6.5 digits |