Download 1.6 PDF - Read the Docs
Transcript
PyVISA Documentation, Release 1.6 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) session Resource session handle. Raises pyvisa.errors.InvalidSession if session is closed. set_visa_attribute(name, state) Sets the state of an attribute. Parameters • name – Attribute for which the state is to be modified. (Attributes.*) • state – The state of the attribute to be set for the specified object. source_increment VI_ATTR_SRC_INCREMENT is used in the viMoveInXX() operations to specify by how many elements the source offset is to be incremented after every transfer. The default value of this attribute is 1 (that is, the source address will be incremented by 1 after each transfer), and the viMoveInXX() operations move from consecutive elements. If this attribute is set to 0, the viMoveInXX() operations will always read from the same element, essentially treating the source as a FIFO register. VISA Attribute VI_ATTR_SRC_INCREMENT (1073676352) Type int Range 0 <= value <= 1 spec_version VI_ATTR_RSRC_SPEC_VERSION is the resource version that uniquely identifies the version of the VISA specification to which the implementation is compliant. 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. The current VISA specification defines the value to be 00300000h. VISA Attribute VI_ATTR_RSRC_SPEC_VERSION (1073676656) Type int Range 0 <= value <= 4294967295 timeout The timeout in milliseconds for all resource I/O operations. None is mapped to VI_TMO_INFINITE. A value less than 1 is mapped to VI_TMO_IMMEDIATE. uninstall_handler(event_type, handler, user_handle=None) Uninstalls handlers for events in this resource. Parameters • event_type – Logical event identifier. • handler – Interpreted as a valid reference to a handler to be uninstalled by a client application. 3.6. API 111