Documentation ¶
Overview ¶
Package dsa provides the Defined Values and other structs, methods, etc. that are common among all Dynamic Signal Analyzers (DSA). Note, DSAs are not included in one of the IVI specifications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SourceShapes = map[string]SourceShape{ "SIN": Sine, "RAND": Random, "BRAN": BurstRandom, "PCH": PeriodicChirp, "BCH": BurstChirp, "PINK": Pink, }
SourceShapes maps the string value to the SourceShape.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel models a generic DSA channel
func NewChannel ¶
func NewChannel(id int, name string, inst ivi.Instrument) Channel
NewChannel returns a Channel for a DSA.
func (*Channel) QueryFloat64 ¶
QueryFloat64 queries the channel and returns a float64.
func (*Channel) QueryString ¶
QueryString queries the channel and returns a string.
type SourceShape ¶
type SourceShape string
SourceShape models the defined values for the Source Shape.
const ( Sine SourceShape = "SIN" // Sinusoidal Waveform Random SourceShape = "RAND" // Random Noise BurstRandom SourceShape = "BRAN" // Burst Random Noise PeriodicChirp SourceShape = "PCH" // Periodic Chirp BurstChirp SourceShape = "BCH" // Burst Chirp Pink SourceShape = "PINK" // Pink Noise )
These are the available source waveforms.
func (SourceShape) String ¶
func (shape SourceShape) String() string
Click to show internal directories.
Click to hide internal directories.