Documentation ¶
Overview ¶
Package oscilloscope provides type and interface definitions for oscilloscopes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { // Data is the actual buffer, []byte, []int16, []uint16, or similar Data Data // Scale is the vertical scale of the data or size of a single increment // in Data's native dtype Scale float64 // Offset is the offset applied to the data Offset float64 // Reference is the reference value for the given channel in DN Reference float64 }
Channel represents a stream of data from an ADC. To convert to physical units, compute (data-offset)*scale
type Data ¶
type Data interface{}
Data is a moniker for an empty interface, expected to be a slice of a concrete numerical type
type Recording ¶
type Recording struct { // RelTimes is the relative time of each sample RelTimes []float64 // AbsTimes is the absolute time of each sample AbsTimes []time.Time // Measurement is the actual numeric data Measurement []float64 // Name is the label to use for the data Name string }
Recording is a sequence of data from the DAQ
Click to show internal directories.
Click to hide internal directories.