Download 1.6 PDF - Read the Docs

Transcript
PyVISA Documentation, Release 1.6
documented to be a local attribute. Since this affects performance and not functionality, that behavior
is acceptable.
VISA Attribute VI_ATTR_DMA_ALLOW_EN (1073676318)
Type bool
before_close()
Called just before closing an instrument.
clear()
Clears this resource
close()
Closes the VISA session and marks the handle as invalid.
destination_increment
VI_ATTR_DEST_INCREMENT is used in the viMoveOutXX() operations to specify by how many
elements the destination offset is to be incremented after every transfer. The default value of this
attribute is 1 (that is, the destination address will be incremented by 1 after each transfer), and the
viMoveOutXX() operations move into consecutive elements. If this attribute is set to 0, the viMoveOutXX() operations will always write to the same element, essentially treating the destination as a
FIFO register.
VISA Attribute VI_ATTR_DEST_INCREMENT (1073676353)
Type int
Range 0 <= value <= 1
get_visa_attribute(name)
Retrieves the state of an attribute in this resource.
Parameters name – Resource attribute for which the state query is made (see Attributes.*)
Returns The state of the queried attribute for a specified resource.
Return type unicode (Py2) or str (Py3), list or other type
implementation_version
VI_ATTR_RSRC_IMPL_VERSION is the resource version that uniquely identifies each of the different revisions or implementations of a resource. This attribute value is defined by the individual
manufacturer and increments with each new revision. The format of the value has the upper 12 bits as
the major number of the version, the next lower 12 bits as the minor number of the version, and the
lowest 8 bits as the sub-minor number of the version.
VISA Attribute VI_ATTR_RSRC_IMPL_VERSION (1073676291)
Type int
Range 0 <= value <= 4294967295
install_handler(event_type, handler, user_handle=None)
Installs handlers for event callbacks in this resource.
Parameters
• event_type – Logical event identifier.
3.6. API
117