Download 1.6 PDF - Read the Docs
Transcript
PyVISA Documentation, Release 1.6 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) 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. 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. • user_handle – A value specified by an application that can be used for identifying handlers uniquely in a session for an event. unlock() Relinquishes a lock for the specified resource. write_memory(space, offset, data, width, extended=False) Write in an 8-bit, 16-bit, 32-bit, value to the specified memory space and offset. Parameters 106 Chapter 3. More information