Sample Program

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

To run, enter the following command line:

GtWaveExample  <Slot> <function> <value >

Where:

<Slot>
PXI Explorer slot number where the board reside.
< function >
Set Function:
  • GTWAVE_FUNCTION_NOT_CONNECTED=Disconnect all Disconnect all functions
  • GTWAVE_FUNCTION_4WIRE=Connect 4-wire
  • GTWAVE_FUNCTION_2WIRE=Connect 2-wire
  • GTWAVE_FUNCTION_POSITIVE_VDC=Connect positive voltage
GTWAVE_FUNCTION_NEGATIVE_VDC=Connect negative voltage
<value >
Set Function value