Download PyVISA Documentation

Transcript
PyVISA Documentation, Release 1.9.dev0
read_values(fmt=None, container=<type ‘list’>)
Read a list of floating point values from the device.
Parameters
• fmt – the format of the values. If given, it overrides the class attribute “values_format”.
Possible values are bitwise disjunctions of the above constants ascii, single, double, and
big_endian. Default is ascii.
• container – the output datatype
Returns the list of read values
Return type list
register(interface_type, resource_class)
resource_class
VI_ATTR_RSRC_CLASS specifies the resource class (for example, “INSTR”) as defined by the
canonical resource name.
VISA Attribute VI_ATTR_RSRC_CLASS (3221159937)
resource_info
Get the extended information of this resource.
Parameters resource_name – Unique symbolic name of a resource.
Return type pyvisa.highlevel.ResourceInfo
resource_manufacturer_name
VI_ATTR_RSRC_MANF_NAME is a string that corresponds to the manufacturer name of the
vendor that implemented the VISA library. This attribute is not related to the device manufacturer
attributes.
Note The value of this attribute is for display purposes only and not for programmatic decisions, as
the value can differ between VISA implementations and/or revisions.
VISA Attribute VI_ATTR_RSRC_MANF_NAME (3221160308)
resource_name
VI_ATTR_RSRC_MANF_NAME is a string that corresponds to the manufacturer name of the
vendor that implemented the VISA library. This attribute is not related to the device manufacturer
attributes.
Note The value of this attribute is for display purposes only and not for programmatic decisions, as
the value can differ between VISA implementations and/or revisions.
VISA Attribute VI_ATTR_RSRC_NAME (3221159938)
serial_number
VI_ATTR_USB_SERIAL_NUM specifies the USB serial number of this device.
VISA Attribute VI_ATTR_USB_SERIAL_NUM (3221160352)
session
Resource session handle.
Raises pyvisa.errors.InvalidSession if session is closed.
114
Chapter 3. More information