sdl10xx

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: 3 Imported by: 0

Documentation

Overview

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

State Caching: Not implemented

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableCOMPorts

func AvailableCOMPorts() []string

AvailableCOMPorts lists the avaialble COM ports, including optional ports.

func DefaultGPIBAddress

func DefaultGPIBAddress() int

DefaultGPIBAddress lists the default GPIB interface address.

func DefaultSerialBaudRate

func DefaultSerialBaudRate() int

DefaultSerialBaudRate returns the default baud rate for the RS-232 serial port.

func DefaultSerialDataFrame

func DefaultSerialDataFrame() string

DefaultSerialDataFrame returns the default RS-232 data frame format.

func SerialBaudRates

func SerialBaudRates() []int

SerialBaudRates lists the available baud rates for the RS-232 serial port from the fastest to the slowest.

func SerialConfig

func SerialConfig() string

SerialConfig lists whether the RS-232 serial port is configured as a DCE (Data Circuit-Terminating Equipment) or a DTE (Data Terminal Equipment). Computers running the IVI program are DTEs; therefore, use a straight through serial cable when connecting to DCEs and a null modem cable when connecting to DTEs.

func SerialDataFrames

func SerialDataFrames() []string

SerialDataFrames lists the available RS-232 data frame formats.

Types

type Channel

type Channel struct {
	load.Channel
}

Channel models a SDL10xx load channel.

func (*Channel) MeasureCurrent

func (ch *Channel) MeasureCurrent() (float64, error)

MeasureCurrent takes a measurement on the output signal and returns the measured current.

MeasureCurrent implements the IviDCPwrMeasurement function Measure for the Current MeasurementType parameter described in Section 7.2.1 of IVI-4.4: IviDCPwr Class Specification.

func (*Channel) MeasureVoltage

func (ch *Channel) MeasureVoltage() (float64, error)

MeasureVoltage takes a measurement on the output signal and returns the measured voltage.

MeasureVoltage implements the IviDCPwrMeasurement function Measure for the Voltage MeasurementType parameter described in Section 7.2.1 of IVI-4.4: IviDCPwr Class Specification.

type SDL10xx

type SDL10xx struct {
	Channels []Channel
	ivi.Inherent
	// contains filtered or unexported fields
}

SDL10xx provides the IVI driver for the Siglent SDL1000X and SDL1030X DC Electronic Loads.

func New

func New(inst ivi.Instrument, reset bool) (*SDL10xx, error)

New creates a new Siglent SDL10xx IVI Instrument driver.

Jump to

Keyboard shortcuts

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