load

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package load provides the Defined Values and other structs, methods, etc. that are common among electronic loads, which is a class of equipment not included in the IVI standard.

Files are split based on the class capability groups.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base interface {
	OutputCount() int
}

type BaseChannel

type BaseChannel interface {
	SetMode(string) error
}

type Channel

type Channel struct {
	// contains filtered or unexported fields
}

Channel represents the repeated capability of an output channel for a DC power supply.

func NewChannel

func NewChannel(id int, name string, inst ivi.Instrument) Channel

NewChannel returns a Channel for an electronic load.

func (*Channel) Name

func (ch *Channel) Name() string

Name returns the name of the output channel. Name is the getter for the read-only IviDCPwrBase Attribute Output Channel Name described in Section 4.2.9 of IVI-4.4: IviDCPwr Class Specification.

func (*Channel) QueryBool

func (ch *Channel) QueryBool(cmd string) (bool, error)

QueryBool queries the channel and returns a bool.

func (*Channel) QueryFloat64

func (ch *Channel) QueryFloat64(cmd string) (float64, error)

QueryFloat64 queries the channel and returns a float64.

func (*Channel) QueryString

func (ch *Channel) QueryString(cmd string) (string, error)

QueryString queries the channel and returns a string. FIXME(mdr): Change to take a format string and ...interface{}

func (*Channel) Set

func (ch *Channel) Set(format string, a ...interface{}) error

Set takes the same inputs as fmt.Sprintf() and writes the resultant command to the IVI device.

func (*Channel) String

func (ch *Channel) String() string

String implements the stringer interface for channel.

Directories

Path Synopsis
siglent
sdl10xx
Package sdl10xx implements the IVI driver for the Signlent SDL1000X and SDL1030X DC electronic loads.
Package sdl10xx implements the IVI driver for the Signlent SDL1000X and SDL1030X DC electronic loads.

Jump to

Keyboard shortcuts

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