pipx40_readCalibration
Function |
pipx40_readCalibration (ByVal vi As Long, ByVal subUnit As Long, ByVal idx As Long, ByRef data As Long) As Long | |
ViStatus |
pipx40_readCalibration (ViSession vi, ViUInt32 subUnit, ViUInt32 idx, ViPUInt32 data); |
Parameter |
I/O |
Description |
vi |
in |
Instrument handle |
subUnit |
in |
Numeric variable indicating in which sub-unit actions will take place |
idx |
in |
Index of the calibration value to be affected - see below |
data |
out |
Pointer/reference to variable to receive result |
Return Value
0 = Successful operation. Negative values are error codes and positive values are warnings. To get a description of the error, pass the error code to pipx40_error_message.
Description
Reads a 16-bit calibration value from on-card non-volatile (EEPROM) memory.
Remarks
The pipx40 driver places no interpretation on the value obtained - an application program can utilise it in any way it wishes.
This feature is only available in association with particular sub-unit types.
For programmable resistors, the valid range of idx values corresponds to the number of bits, i.e. to the range of valid output channel numbers. A 16-bit resistor sub-unit therefore supports 16 x 16-bit values.
The storage capacity of other types supporting this feature is determined by their functionality.