Module RigolDSWrap :: Class RigolDS
[hide private]
[frames] | no frames]

Class RigolDS

source code

object --+
         |
        RigolDS

Class that encapsulates some Rigol DS1052E functionality.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
callerr(self)
If a call fails, get an explanatory error message and show it.
source code
 
error(self)
Test for an error having occurred.
source code
 
get_error_info(self)
Get an error message.
source code
 
command(self, c)
Send a low level command to the oscilloscope.
source code
 
multi_command(self, c)
Send multiple commands, separated by semi-colons, to the oscilloscope.
source code
 
query(self, q)
Send a query command to the oscilloscope and get its response back as a string.
source code
 
acquire(self, stopfirst, localafter)
Acquire waveform data from the oscilloscope.
source code
 
read_channel(self, channel, samples)
Return samples number of waveform samples for channel (1 or 2).
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

command(self, c)

source code 

Send a low level command to the oscilloscope. All commands begin with a colon.

query(self, q)

source code 

Send a query command to the oscilloscope and get its response back as a string. Query commands should contain a ?

acquire(self, stopfirst, localafter)

source code 

Acquire waveform data from the oscilloscope. Return the number of data points available in each channel. Return 0 if a channel is not available. Also return the maximum of the two channels sample counts. If stopfirst is not 0, stop sampling before acquiring, then restart. If localafter is not 0, leave remote mode after acquisition. This function does the hard work of getting the measurements. Return tuple (chan1_samples, chan2_samples, maximum_samples)

read_channel(self, channel, samples)

source code 

Return samples number of waveform samples for channel (1 or 2). The sampling rate (time between samples), horizontal (time) and vertical (voltage) offsets are also returned. Return tuple (number_of_samples, sample_data, sample_rate, hoffset, voffset)