pyrolab.drivers.fpgas.analogdiscovery.AnalogDiscovery#
- class AnalogDiscovery[source]#
Bases:
FPGAA Digilent Analog Discovery 3.
The board has 2 analog inputs, 2 analog outputs, 16 digital inputs, and 16 digital outputs. At the moment, only the analog inputs and outputs are implemented, and only the scope and wavegen functionalities are implemented.
Methods
Connect to the board.
close()Disconnect from the board.
connect(**kwargs)Connects to instruments or services that require initialization.
Returns a list of connection parameters for available devices.
Get the scope sample rate.
Get the scope's sample rate, buffer size, and max buffer size.
ping()Returns a bool (True) to indicate that the Daemon is alive and can be communicated with.
Return the version of PyroLab running the device.
Close (reset) the oscilloscope.
scope_measure([channel])Measure the voltage on a channel.
scope_open([sampling_frequency, ...])Initialize the oscilloscope.
scope_record([channel])Record an analog signal over a period of time determined by the scope buffer and sample rate.
scope_trigger(enable[, source, channel, ...])Set up the triggering for the scope.
set_behavior([instance_mode, instance_creator])Sets the Pyro5 behavior for the class (modified in place).
wavegen_close([channel])Reset a wavegen channel, or all channels (channel=0).
wavegen_disable([channel])Disable a wavegen channel, stopping the waveform generation.
wavegen_enable([channel])Enable a wavegen channel, starting the waveform generation.
wavegen_generate([channel, function, ...])Generate a waveform on a wavegen channel.