oscope

SCPI driver for VISA instruments. Currently, only the ds1102d oscilloscope is defined. All other SCPI instruments should work if oscope is provided the commands.

Example

require 'oscope/rigol/ds1102d'

scope = Oscope::Rigol::Ds1102d.new
scope.open(scope.session.find_resources('USB*').first)
# get timebase settings
scope.timebase.scale.to_f
scope.timebase.offset.to_f

# get channel settings
scope.channel(1).scale.to_f
scope.channel(1).offset.to_f
scope.channel(2).scale.to_f
scope.channel(2).offset.to_f
scope.acquire.sampling_rate('chan2').to_f

# get channel waveforms
scope.waveform.data 'chan2'
scope.waveform.data 'chan1'
scope.waveform.data 'digital'

Contributing to oscope

Copyright © 2015 tduehr. See LICENSE for further details.