GxCalGetFunction

Purpose

Returns the connected function and the function settings.

Syntax

GxCalGetFunction (nHandle, pnFunction, pdValue1, pdValue2, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1034 board.
pnFunction
PSHORT
Returned connected function number (see comments for details):
GXCAL_FUNCTION_NOT_CONNECTED: No function connected.
GXCAL_FUNCTION_4WIRE: 4-wires resistors is connected.
GXCAL_FUNCTION_2WIRE: 2-wires resistors is connected.
GXCAL_FUNCTION_POSITIVE_VDC: Positive DC voltage is connected.
GXCAL_FUNCTION_NEGATIVE_VDC: Negative DC voltage is connected.
GXCAL_FUNCTION_AC: AC voltage is connected.
GXCAL_FUNCTION_TTL_CLOCK: TTL clock is connected.
GXCAL_FUNCTION_CURRENT_SOURCE: Current source is connected
GXCAL_FUNCTION_MEASURE_VDC: Output voltage measuremnt is is connected.
GXCAL_FUNCTION_MEASURE_RESISTANCE: Cutput voltage measuremnt  and Current sourcea re connected.
pdValue1
PDOUBLE
See Comments
pdValue2
PDOUBLE
See comments
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Returned function is as follow:

Connected function: 4-wires resistors (GXCAL_FUNCTION_4WIRE):

There are three 4-wire resistors on-board of 1W, 10W, 100W. Actual measured values are stored in the on-board EEPORM and can be retrieve by calling the GxCalGetFunctionMeasuredValue function.

Connected function: 2-wires resistors (GXCAL_FUNCTION_2WIRE):

There are eight 2-wire resistors on-board of 1W, 10W, 100W, 1KW, 10KW, 100KW, 1MW, 10MW. Actual measured values are stored in the on-board EEPORM and can be retrieved by calling the GxCalGetFunctionMeasuredValue function.

Connected function: Positive DC voltage (GXCAL_FUNCTION_POSITIVE_VDC):

There are four positive DC voltages on-board of 9.0V, 0.9V, 0.09V, 0.009V, actual measured values are stored in the on-board EEPORM and can be retrieved by calling the GxCalGetFunctionMeasuredValue function.

Connected function: Negative DC voltage (GXCAL_FUNCTION_NEGATIVE_VDC):

There are four negative DC voltages on-board of -9.0V, -0.9V, -0.09V, -0.009V, actual measured values are stored in the on-board EEPORM and can be retrieved by calling the GxCalGetFunctionMeasuredValuefunction.

Connected function: AC voltage (GXCAL_FUNCTION_AC):

There are four AC voltages on-board of 3..5VAC, 0.35VAC, 0.035VAC and 0.0035VAC, actual measured values are stored in the on-board EEPORM and can be retrieved by calling the GxCalGetFunctionMeasuredValue function.

The supported AC frequncies are 100Hz, 1KHz, 10KHz, 100KHz, 50Hz, 60Hz and 400Hz, actual measured values are stored in the on-board EEPORM and can be retrieved by calling the GxCalGetFunctionMeasuredValuefunction.

Connected function: TTL clock (GXCAL_FUNCTION_TTL_CLOCK):

The TTL clock frequancy is set by deviding an on-board 10MHz time base with integer values between 1 and 10e6 with a Duty Cycle of 50%.

Connected function: Current Source (GXCAL_FUNCTION_CURRENT_SOURCE):

Connect to the ouptut the bord’s current source.

Note: Make sure that there ar noe components in the connected cuircuit that can be damaged by the 20mA (Max) current settings.

Connected function: Output voltage measuremnt (GXCAL_FUNCTION_MEASURE_VDC):

Conrnect the bord’s internal ADC to the ouput connectore. Voltage measduremtns can than be done by calling GxCalMeasure.

Connected function: Resistance measurement (GXCAL_FUNCTION_MEASURE_RESISTANC):

Connect the outptut the bord’s current source and the internal ADC to the ouput connector. The use can then measure the output resistance by calling GxCalMeasure function. Calling the function with different output current settings (lower or higher values) can increase the accuracy and staability of the ressistance meaasurments.

Note: Make sure that there ar noe components in the connected cuircuit that can be damaged by the 20mA (Max) current settings.

Example

The following example returns the function and function settings:

 

SHORT nHandle, nFunction, nStatus;

DOUBLE dValue, dValue1;

GxCalGetFunction (nHandle, &nFunction, &dValue, &dValue1, &nStatus);

 

See Also

GxCalSetFunction, GxCalMesure, GxCalGetErrorString