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 functionsGXCAL_FUNCTION_4WIRE=Connect 4-wireGXCAL_FUNCTION_2WIRE=Connect 2-wireGXCAL_FUNCTION_POSITIVE_VDC=Connect positive voltageGXCAL_FUNCTION_NEGATIVE_VDC=Connect negative voltage |
<value > |
Set Function value |