Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferRecorder ¶
type BufferRecorder struct {
// contains filtered or unexported fields
}
BufferRecorder is a buffer that implements the scope.DataRecorder interface. Users should call Wait() to get the data that was recorded in the buffer.
func NewBufferRecorder ¶
func NewBufferRecorder(tb scope.Duration) *BufferRecorder
NewBufferRecorder creates a new test data recorder with timebase equal to tb.
func (*BufferRecorder) Error ¶
func (r *BufferRecorder) Error(err error)
Error reports an acquisition error to the data recorder.
func (*BufferRecorder) Reset ¶
func (r *BufferRecorder) Reset(i scope.Duration, ch <-chan []scope.ChannelData)
Reset prepares a new recording with sample interval i, reading samples from ch.
func (*BufferRecorder) TimeBase ¶
func (r *BufferRecorder) TimeBase() scope.Duration
TimeBase returns the configured timebase (sweep length) of the recorder.
Click to show internal directories.
Click to hide internal directories.