pipx40_writeCalibration
Function |
pipx40_writeCalibration (ByVal vi As Long, ByVal subUnit As Long, ByVal idx As Long, ByVal data As Long) As Long | |
ViStatus |
pipx40_writeCalibration (ViSession vi, ViUInt32 subUnit, ViUInt32 idx, ViUInt32 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 |
in |
The calibration value to be written |
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
Writes a 16-bit calibration value to on-card non-volatile (EEPROM) memory. The 16 least significant bits of the supplied data value are stored.
Remarks
The pipx40 driver places no interpretation on the value written - 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.