Documentation ¶
Overview ¶
Package fluke45 implements the IVI driver for the Fluke 45 DMM.
State Caching: Not implemented
Index ¶
- type Driver
- func (d *Driver) Abort() error
- func (d *Driver) ConfigureMeasurement(msrFunc dmm.MeasurementFunction, autoRange dmm.AutoRange, rangeValue float64, ...) error
- func (d *Driver) ConfigureTrigger(src dmm.TriggerSource, delay time.Duration) error
- func (d *Driver) FetchMeasurement(maxTime time.Duration) (float64, error)
- func (d *Driver) InitiateMeasurement() error
- func (d *Driver) IsOverRange(value float64) bool
- func (d *Driver) MeasurementFunction() (dmm.MeasurementFunction, error)
- func (d *Driver) QueryString(cmd string) (string, error)
- func (d *Driver) Range() (dmm.AutoRange, float64, error)
- func (d *Driver) ReadMeasurement(maxTime time.Duration) (float64, error)
- func (d *Driver) ResolutionAbsolute() (float64, error)
- func (d *Driver) SetMeasurementFunction(msrFunc dmm.MeasurementFunction) error
- func (d *Driver) SetRange(autoRange dmm.AutoRange, rangeValue float64) error
- func (d *Driver) SetResolutionAbsolute(resolution float64) error
- func (d *Driver) SetTriggerDelay(autoDelay bool, delay float64) error
- func (d *Driver) SetTriggerSource(src dmm.TriggerSource) error
- func (d *Driver) TriggerDelay() (bool, float64, error)
- func (d *Driver) TriggerSource() (dmm.TriggerSource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶ added in v0.10.0
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) ConfigureMeasurement ¶ added in v0.10.0
func (*Driver) ConfigureTrigger ¶ added in v0.10.0
func (*Driver) FetchMeasurement ¶ added in v0.10.0
func (*Driver) InitiateMeasurement ¶ added in v0.10.0
func (*Driver) IsOverRange ¶ added in v0.10.0
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
QueryString queries the DMM and returns a string.
func (*Driver) Range ¶ added in v0.10.0
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 (*Driver) ResolutionAbsolute ¶ added in v0.10.0
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
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 (*Driver) SetTriggerDelay ¶ added in v0.10.0
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 (*Driver) TriggerSource ¶ added in v0.10.0
func (d *Driver) TriggerSource() (dmm.TriggerSource, error)