
Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-41
Also see
(on page 8-11)
(on page 8-14)
(on page 8-19)
(on page 8-92)
(on page 8-93)
(on page 3-2)
(on page 3-23)
buffer.write.format()
This function sets the units and number of digits of the readings that are written into the reading buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
buffer.write.format(
bufferVar
,
units
,
displayDigits
)
buffer.write.format(
bufferVar
,
units
,
displayDigits, extraUnits)
buffer.write.format(
bufferVar
,
units
,
displayDigits, extraUnits, extraDigits
)
bufferVar
The name of the buffer
units
The units for the first measurement in the
buffer index:
•
buffer.UNIT_AMP
•
buffer.UNIT_AMP_AC
•
buffer.UNIT_CELSIUS
•
buffer.UNIT_DECIBEL
•
buffer.UNIT_FAHRENHEIT
•
buffer.UNIT_FARAD
•
buffer.UNIT_HERTZ
•
buffer.UNIT_KELVIN
•
buffer.UNIT_NONE
•
buffer.UNIT_OHM
•
buffer.UNIT_PERCENT
•
buffer.UNIT_RATIO
•
buffer.UNIT_RECIPROCAL
•
buffer.UNIT_SECOND
•
buffer.UNIT_VOLT
•
buffer.UNIT_VOLT_AC
•
buffer.UNIT_WATT
•
buffer.UNIT_X
displayDigits
The number of digits to use for the first measurement:
•
buffer.DIGITS_3_5
•
buffer.DIGITS_4_5
•
buffer.DIGITS_5_5
•
buffer.DIGITS_6_5
•
buffer.DIGITS_7_5
•
buffer.DIGITS_8_5
extraUnits
The units for the second measurement in the buffer index; the selections are the same
as
units
(only valid for buffer style
WRITABLE_FULL
); if not specified, will use the
value for
units
extraDigits
The number of digits to use for the second measurement; the selections are the same
as
displayDigits
(only valid for buffer style
WRITABLE_FULL
); if not specified, will
use the value for
displayDigits