Download PyVISA Documentation

Transcript
PyVISA Documentation, Release 1.9.dev0
class pyvisa.resources.USBRaw(*args, **kwargs)
Communicates with to devices of type USB::manufacturer ID::model code::serial number::RAW
More complex resource names can be specified with the following grammar: USB[board]::manufacturer
ID::model code::serial number[::USB interface number]::RAW
Do not instantiate directly, use pyvisa.highlevel.ResourceManager.open_resource().
CR = u’\r’
LF = u’\n’
assert_trigger()
Sends a software trigger to the device.
before_close()
Called just before closing an instrument.
chunk_size = 20480
clear()
Clears this resource
close()
Closes the VISA session and marks the handle as invalid.
disable_event(event_type, mechanism)
Disables notification of the specified event type(s) via the specified mechanism(s).
Parameters
• event_type – Logical event identifier.
• mechanism – Specifies event handling mechanisms to be disabled.
stants.VI_QUEUE, .VI_HNDLR, .VI_SUSPEND_HNDLR, .VI_ALL_MECH)
(Con-
discard_events(event_type, mechanism)
Discards event occurrences for specified event types and mechanisms in this resource.
Parameters
• event_type – Logical event identifier.
• mechanism – Specifies event handling mechanisms to be dicarded.
stants.VI_QUEUE, .VI_HNDLR, .VI_SUSPEND_HNDLR, .VI_ALL_MECH)
(Con-
enable_event(event_type, mechanism, context=None)
Enable event occurrences for specified event types and mechanisms in this resource.
Parameters
• event_type – Logical event identifier.
• mechanism – Specifies event handling mechanisms to be enabled.
stants.VI_QUEUE, .VI_HNDLR, .VI_SUSPEND_HNDLR)
(Con-
• context – Not currently used, leave as None.
encoding
Encoding used for read and write operations.
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.
3.6. API
109