Gx3348Measure

Purpose

Measure voltage at channel pin

Syntax

Gx3348Measure (nHandle, nGroup, nChannel, pdMeasurement, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle for the PXI board.
nGroup
SHORT
Channel Group to measure
0. GX3348_GROUP_A: Connect/Disconnect a channel from Group A
1. GX3348_GROUP_B: Connect/Disconnect a channel from Group B
2. GX3348_GROUP_C: Connect/Disconnect a channel from Group C
3. GX3348_GROUP_D: Connect/Disconnect a channel form Group D
nChannel
SHORT
Sets Channel that will be measured (0-15)
pdMeasurement
PDOUBLE
Returns the voltage measurement of a channel.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function measures the voltage present at each of the up to 64 output channels. The hardware uses an ADC to measure voltage.

Example

The following example initializes and measures the voltage present at Channel 10 of Group B:

 

SHORT nHandle, nStatus;

DOUBLE dMesaurement;

Gx3348Initialize (1, &nHandle, &nStatus);

Gx3348Measure (nHandle, GX3348_RAIL_DAC_B, 10, &dMeasurement, &nStatus);

 

See Also

Gx3348Initialize, Gx3348SetDac, Gx3348CalDac, GxPdoGetErrorString