Sample Programs

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

To run, enter the following command line:

GxCalExample  <Slot> <function> <value >

Where:

<Slot>
PXI Explorer slot number where the board reside.
< function >
Set Function:
GXCAL_FUNCTION_NOT_CONNECTED=Disconnect all Disconnect all functions
GXCAL_FUNCTION_4WIRE=Connect 4-wire
GXCAL_FUNCTION_2WIRE=Connect 2-wire
GXCAL_FUNCTION_POSITIVE_VDC=Connect positive voltage
GXCAL_FUNCTION_NEGATIVE_VDC=Connect negative voltage
<value >
Set Function value