fluke45

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package fluke45 implements the IVI driver for the Fluke 45 DMM.

State Caching: Not implemented

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver added in v0.10.0

type Driver struct {
	ivi.Inherent
	// contains filtered or unexported fields
}

Driver provides the IVI driver for the Fluke 45 DMM.

func New

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

New creates a new Agilent3446x IVI Instrument.

func (*Driver) Abort added in v0.10.0

func (d *Driver) Abort() error

func (*Driver) ConfigureMeasurement added in v0.10.0

func (d *Driver) ConfigureMeasurement(
	msrFunc dmm.MeasurementFunction,
	autoRange dmm.AutoRange,
	rangeValue float64,
	resolution float64,
) error

func (*Driver) ConfigureTrigger added in v0.10.0

func (d *Driver) ConfigureTrigger(src dmm.TriggerSource, delay time.Duration) error

func (*Driver) FetchMeasurement added in v0.10.0

func (d *Driver) FetchMeasurement(maxTime time.Duration) (float64, error)

func (*Driver) InitiateMeasurement added in v0.10.0

func (d *Driver) InitiateMeasurement() error

func (*Driver) IsOverRange added in v0.10.0

func (d *Driver) IsOverRange(value float64) bool

func (*Driver) MeasurementFunction added in v0.10.0

func (d *Driver) MeasurementFunction() (dmm.MeasurementFunction, error)

MeasurementFunction returns the currently specified measurement function.

MeasurementFunction is the getter for the read-write IviDmmBase Attribute Function described in Section 4.2.1 of IVI-4.2: IviDmm Class Specification.

func (*Driver) QueryString added in v0.10.0

func (d *Driver) QueryString(cmd string) (string, error)

QueryString queries the DMM and returns a string.

func (*Driver) Range added in v0.10.0

func (d *Driver) Range() (dmm.AutoRange, float64, error)

Range returns the measurement range and whether auto range is enabled, disabled, or enabled for one measurement.

There is a dependency between the Range attribute and the Resolution Absolute attribute. The allowed values of Resolution Absolute attribute depend on the Range attribute. Typically, when the value of the Range attribute changes, the instrument settings that correspond to the Resolution Absolute attribute change as well. This is true regardless of how the change of measurement range occurs.

There are two possible ways that the measurement range can change. The application program can set the value of the Range attribute. Or, the instrument changes the measurement range because Range attribute is set to Auto Range On and the input signal changes. In both cases, the instrument resolution is likely to change.

The value of the MeasurementFunction attribute determines the units for this attribute as follows:

DC Volts = Volts AC Volts = Volts RMS DC Current = Amps AC Current = Amps 2-Wire Resistance = Ohms 4-Wire Resistance = Ohms AC Plus DC Volts = Volts AC Plus DC Current = Amps Frequency = Hertz Period = Seconds Temperature = Degrees Celsius

Range is the getter for the read-write IviDmmBase Attribute Range described in Section 4.2.2 of IVI-4.2: IviDmm Class Specification.

func (*Driver) ReadMeasurement added in v0.10.0

func (d *Driver) ReadMeasurement(maxTime time.Duration) (float64, error)

func (*Driver) ResolutionAbsolute added in v0.10.0

func (d *Driver) ResolutionAbsolute() (float64, error)

func (*Driver) SetMeasurementFunction added in v0.10.0

func (d *Driver) SetMeasurementFunction(msrFunc dmm.MeasurementFunction) error

SetMeasurementFunction specifies the measurement function.

SetMeasurementFunction is the setter for the read-write IviDmmBase Attribute Function described in Section 4.2.1 of IVI-4.2: IviDmm Class Specification.

func (*Driver) SetRange added in v0.10.0

func (d *Driver) SetRange(autoRange dmm.AutoRange, rangeValue float64) error

SetRange sets the range corresponding to the maximum input value based on the rest of hte instrument configuration (the same as the IVI.NET behavior). Setting this property sets AutoRange to Auto.Off If the property is set to a negative value and that negative value is valid for the current function (for instance DC Volts) the instrument will configure to measure that value.

SetRange is the setter for the read-write IviDmmBase Attribute Range described in Section 4.2.2 of IVI-4.2: IviDmm Class Specification.

func (*Driver) SetResolutionAbsolute added in v0.10.0

func (d *Driver) SetResolutionAbsolute(resolution float64) error

func (*Driver) SetTriggerDelay added in v0.10.0

func (d *Driver) SetTriggerDelay(autoDelay bool, delay float64) error

func (*Driver) SetTriggerSource added in v0.10.0

func (d *Driver) SetTriggerSource(src dmm.TriggerSource) error

func (*Driver) TriggerDelay added in v0.10.0

func (d *Driver) TriggerDelay() (bool, float64, error)

func (*Driver) TriggerSource added in v0.10.0

func (d *Driver) TriggerSource() (dmm.TriggerSource, error)

Jump to

Keyboard shortcuts

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