wfm

package
Version: v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNumberOfTraces

func GetNumberOfTraces(rawWFM []byte) (int, error)

func ParseTraces

func ParseTraces(rawWFM []byte, frames [][]float64) ([][]float64, error)

ParseTraces extracts trace data from a tektronix wfm file. Very rough state; has basically zero error checks right now but

Types

type Parser

type Parser struct{}

Parser is an adapter to the TraceParser interface

func (Parser) GetNumberOfTraces

func (p Parser) GetNumberOfTraces(bytes []byte) (int, error)

func (Parser) ParseTraces

func (p Parser) ParseTraces(raw []byte, frames [][]float64) ([][]float64, error)

type TraceParser

type TraceParser interface {
	ParseTraces([]byte, [][]float64) ([][]float64, error)
	GetNumberOfTraces([]byte) (int, error)
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL