Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe struct {
// The maximum length of the probe's internal signal history.
MaximumSignalLength int
// The length of the input channel's buffer.
InputBufferLength int
// The probe's input channel.
C chan float64
// contains filtered or unexported fields
}
Probe types reprepsent a digital probe which captures a signal and outputs that signal to an array and, optionally, an image for inspection.
func NewProbe ¶
func NewProbe() *Probe
NewProbe creates and returns a new probe with the given name.
func (*Probe) Activate ¶
func (p *Probe) Activate()
Activate activates the probe and begins waiting for signal values over its input channel.
func (*Probe) ClearSignal ¶
func (p *Probe) ClearSignal()
ClearSignal removes all elements from the probe's input signal.
func (*Probe) Deactivate ¶
Deactivate deactivates the probe and returns the signal it collected.
func (*Probe) Flush ¶
func (p *Probe) Flush()
Flush flushes the probe's input buffer if values were given to the buffer via its input channel.
func (*Probe) Push ¶
Push appends a value to the probe's signal after, optionally, flushing any values in the probe's input channel buffer.
func (*Probe) RecentValue ¶
RecentValue retrieves the most recent value collected by the probe or 0.0 if a value has not been collected.