buffer
¶
The buffer commands module.
These commands are used in the following models: DMM7510
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.
Please report an issue if one is found.
Attributes and Functions
- buffer.clearstats()
- buffer.delete()
- buffer.make()
- buffer.save()
- buffer.saveappend()
- buffer.write.format()
Buffer
¶
Bases: BaseTSPCmd
The buffer command tree.
Constants
.COL_ALL: Save all data from the specified reading buffer..COL_BRIEF: Save reading and relative time data from the specified reading buffer..COL_DISPLAY_DIGITS: Save display digits from the specified reading buffer..COL_EXTRA: Relative time and additional values if they exist (such as the sense voltage from a dc voltage ratio measurement)..COL_EXTRA_RANGE: Save sxtra value range digits from the specified reading buffer..COL_EXTRA_UNIT: Save extra value units from the specified reading buffer..COL_EXTRA_VALUE: Save extra values from the specified reading buffer..COL_INDEX: Save index into buffer from the specified reading buffer..COL_LIMITS: The status of all limits..COL_MATH: Math enabled (F is math is not enabled; T if math is enabled) and relative time..COL_ORIGIN: Save origin status from the specified reading buffer..COL_QUESTIONABLE: Save questionable status from the specified reading buffer..COL_RANGE_DIGITS: Save range digits from the specified reading buffer..COL_READING: Save the measurement reading from the specified reading buffer..COL_STANDARD: Save the relative time, reading, channel, and source value from the specified reading buffer..COL_START: Save the status of the start group from the specified reading buffer..COL_STATUS: Save the status information associated with the measurement from the specified reading buffer..COL_TERMINAL: Save the terminal status from the specified reading buffer..COL_TIMESTAMP_READING: Save the timestamp reading from the specified reading buffer..COL_TIME_ABSOLUTE: Save the time when the data point was measured as an absolute from the specified reading buffer..COL_TIME_PARTS: Save absolute time in multiple columns from the specified reading buffer..COL_TIME_RAW: Save absolute time in seconds from the specified reading buffer..COL_TIME_RELATIVE: Save the relative time when the data point was measured in seconds from the specified reading buffer..COL_UNIT: Save the reading and the unit of measure from the specified reading buffer..DIGITS_3_5: The number of digits to use for the first measurement..DIGITS_4_5: The number of digits to use for the first measurement..DIGITS_5_5: The number of digits to use for the first measurement..DIGITS_6_5: The number of digits to use for the first measurement..DIGITS_7_5: The number of digits to use for the first measurement..DIGITS_8_5: The number of digits to use for the first measurement..EXPR_ADD: Add the present and previous measurements..EXPR_AVERAGE: Average the present and previous measurements..EXPR_DIVIDE: Divide the present reading by the previous reading..EXPR_EXPONENT: Exponent (10^present reading)..EXPR_LOG10: Log10 (log10(present reading))..EXPR_MULTIPLY: Multiply the present and previous measurements..EXPR_NONE: Remove the math expression..EXPR_POLY: Polynomial where r is present reading and c is constant..EXPR_POWER: Present reading raised to power of defined constant..EXPR_RATE: Rate of change (present reading - previous reading)/(timestamp of present reading - timestamp of previous reading)..EXPR_RECIPROCAL: Reciprocal (1/present reading)..EXPR_SQROOT: Square root of the present reading..EXPR_SUBTRACT: Present reading - previous reading..FILL_CONTINUOUS: Fill the buffer continuously..FILL_ONCE: Fill the buffer, then stop..OFF: Do not log information events..ON: Log information events..SAVE_FORMAT_TIME: Include dates, times, and fractional seconds in the buffer..SAVE_RAW_TIME: Include seconds and fractional seconds in the buffer..SAVE_RELATIVE_TIME: Include relative timestamps in the buffer..SAVE_TIMESTAMP_TIME: Include timestamps in the buffer..STAT_LIMIT1_HIGH: Reading is above high limit 1..STAT_LIMIT1_LOW: Reading is below low limit 1..STAT_LIMIT2_HIGH: Reading is above high limit 2..STAT_LIMIT2_LOW: Reading is below low limit 2..STAT_ORIGIN: A/D converter from which reading originated; for most instruments, this will always be 0 (main). For digitizing instruments, can be 2 (digitize)..STAT_QUESTIONABLE: Measure status questionable..STAT_REL: Relative offset..STAT_SCAN: Scan..STAT_START_GROUP: First reading in a group..STAT_TERMINAL: Measure terminal, front is 1, rear is 0..STYLE_COMPACT: Store readings with reduced accuracy (6.5 digits) with no formatting information, 1 μs accurate timestamp..STYLE_FULL: Store the same information with full accuracy with formatting, plus additional information..STYLE_STANDARD: Store readings with full accuracy with formatting..STYLE_WRITABLE: Store external reading buffer data..STYLE_WRITABLE_FULL: Store external reading buffer data with two reading values..UNIT_AMP: Set units of measure to dc current..UNIT_AMP_AC: Set units of measure to ac current..UNIT_CELSIUS: Set units of measure to Celsius..UNIT_CUSTOM1: Custom unit 1 (defined by buffer.unit())..UNIT_CUSTOM2: Custom unit 2 (defined by buffer.unit())..UNIT_CUSTOM3: Custom unit 3 (defined by buffer.unit())..UNIT_DAC: Set units of measure to DAC (voltage)..UNIT_DBM: Set units of measure to decibel-milliwatts..UNIT_DECIBEL: Set units of measure to decibels..UNIT_DIO: Set units of measure to digital I/O..UNIT_FAHRENHEIT: Set units of measure to Fahrenheit..UNIT_FARAD: Set units of measure to capacitance..UNIT_HERTZ: Set units of measure to frequency..UNIT_KELVIN: Set units of measure to Kelvin..UNIT_NONE: Set units of measure to no units..UNIT_OHM: Set units of measure to ohms..UNIT_PERCENT: Set units of measure to percent..UNIT_RATIO: Set units of measure to dc voltage ratio..UNIT_RECIPROCAL: Set units of measure to reciprocal..UNIT_SECOND: Set units of measure to period..UNIT_TOT: Set units of measure to totalizer..UNIT_VOLT: Set units of measure to dc voltage..UNIT_VOLT_AC: Set units of measure to ac voltage..UNIT_WATT: Set units of measure to watts..UNIT_X: Set units of measure to buffer.UNIT_X.
Properties and methods
.clearstats(): Thebuffer.clearstats()function..delete(): Thebuffer.delete()function..make(): Thebuffer.make()function..save(): Thebuffer.save()function..saveappend(): Thebuffer.saveappend()function..write: Thebuffer.writecommand tree.
COL_DISPLAY_DIGITS
class-attribute
instance-attribute
¶
COL_DISPLAY_DIGITS = 'buffer.COL_DISPLAY_DIGITS'
COL_TIMESTAMP_READING
class-attribute
instance-attribute
¶
COL_TIMESTAMP_READING = 'buffer.COL_TIMESTAMP_READING'
COL_TIME_ABSOLUTE
class-attribute
instance-attribute
¶
COL_TIME_ABSOLUTE = 'buffer.COL_TIME_ABSOLUTE'
COL_TIME_RELATIVE
class-attribute
instance-attribute
¶
COL_TIME_RELATIVE = 'buffer.COL_TIME_RELATIVE'
SAVE_RELATIVE_TIME
class-attribute
instance-attribute
¶
SAVE_RELATIVE_TIME = 'buffer.SAVE_RELATIVE_TIME'
SAVE_TIMESTAMP_TIME
class-attribute
instance-attribute
¶
SAVE_TIMESTAMP_TIME = 'buffer.SAVE_TIMESTAMP_TIME'
STAT_QUESTIONABLE
class-attribute
instance-attribute
¶
STAT_QUESTIONABLE = 'buffer.STAT_QUESTIONABLE'
STYLE_WRITABLE_FULL
class-attribute
instance-attribute
¶
STYLE_WRITABLE_FULL = 'buffer.STYLE_WRITABLE_FULL'
write
property
¶
write: BufferWrite
Return the buffer.write command tree.
Sub-properties and sub-methods
.format(): Thebuffer.write.format()function.
clearstats
¶
clearstats(buffer_var: str | None = None) -> None
Run the buffer.clearstats() function.
Description
- This function clears the statistical information associated with the specified buffer.
TSP Syntax
- buffer.clearstats()
| Parameters: |
|
|---|
| Raises: |
|
|---|
delete
¶
delete(buffer_name: str) -> None
Run the buffer.delete() function.
Description
- This function deletes a user-defined reading buffer.
TSP Syntax
- buffer.delete()
| Parameters: |
|
|---|
| Raises: |
|
|---|
make
¶
Run the buffer.make() function.
Description
- This function creates a user-defined reading buffer.
TSP Syntax
- buffer.make()
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
save
¶
save(
buffer_var: str,
file_name: str,
what: str | None = None,
start: str | None = None,
end: str | None = None,
) -> None
Run the buffer.save() function.
Description
- This function saves data from the specified reading buffer to a USB flash drive.
TSP Syntax
- buffer.save()
| Parameters: |
|
|---|
| Raises: |
|
|---|
saveappend
¶
saveappend(
buffer_var: str,
file_name: str,
time_format: str | None = None,
start: str | None = None,
end: str | None = None,
) -> None
Run the buffer.saveappend() function.
Description
- This function appends data from the reading buffer to a file on the USB flash drive.
TSP Syntax
- buffer.saveappend()
| Parameters: |
|
|---|
| Raises: |
|
|---|
BufferWrite
¶
Bases: BaseTSPCmd
The buffer.write command tree.
Properties and methods
.format(): Thebuffer.write.format()function.
format
¶
format(
buffer_var: str,
units: str,
display_digits: int,
extra_units: str | None = None,
extra_digits: int | None = None,
) -> None
Run the buffer.write.format() function.
Description
- This function sets the units and number of digits of the readings that are written into the reading buffer.
TSP Syntax
- buffer.write.format()
| Parameters: |
|
|---|
| Raises: |
|
|---|