Measure voltage at channel pin
Gx3348Measure (nHandle, nGroup, nChannel, pdMeasurement, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle for the PXI board. |
nGroup |
SHORT |
Channel Group to measure0. GX3348_GROUP_A: Connect/Disconnect a channel from Group A1. GX3348_GROUP_B: Connect/Disconnect a channel from Group B2. GX3348_GROUP_C: Connect/Disconnect a channel from Group C3. 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. |
This function measures the voltage present at each of the up to 64 output channels. The hardware uses an ADC to measure voltage.
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);
Gx3348Initialize, Gx3348SetDac, Gx3348CalDac, GxPdoGetErrorString