pub struct Scope<'a> { /* private fields */ }Expand description
Handle for an oscilloscope net: an instrument (scope) or one of
its channels (scope-channel). See the module docs for which
actions need a channel net.
Implementations§
Source§impl<'a> Scope<'a>
impl<'a> Scope<'a>
Sourcepub fn is_enabled(&self) -> Result<bool>
pub fn is_enabled(&self) -> Result<bool>
Whether this net’s channel is on, as the instrument reports it.
Sourcepub fn force_trigger(&self) -> Result<()>
pub fn force_trigger(&self) -> Result<()>
Force a trigger now.
Sourcepub fn set_scale(&self, volts_per_div: f64) -> Result<()>
pub fn set_scale(&self, volts_per_div: f64) -> Result<()>
Set this channel’s vertical scale (V/div).
Sourcepub fn set_timebase(&self, seconds_per_div: f64) -> Result<()>
pub fn set_timebase(&self, seconds_per_div: f64) -> Result<()>
Set the timebase (s/div).
Sourcepub fn set_coupling(&self, mode: &str) -> Result<()>
pub fn set_coupling(&self, mode: &str) -> Result<()>
Set this channel’s input coupling ("dc", "ac"; a Rigol also
takes "gnd").
Sourcepub fn set_probe(&self, ratio: f64) -> Result<()>
pub fn set_probe(&self, ratio: f64) -> Result<()>
Set this channel’s probe attenuation (1 for 1x, 10 for 10x).
Sourcepub fn set_offset(&self, volts: f64) -> Result<()>
pub fn set_offset(&self, volts: f64) -> Result<()>
Set this channel’s vertical offset (V).
Sourcepub fn set_time_offset(&self, seconds: f64) -> Result<()>
pub fn set_time_offset(&self, seconds: f64) -> Result<()>
Move the capture window in time relative to the trigger (s).
Sourcepub fn time_offset(&self) -> Result<f64>
pub fn time_offset(&self) -> Result<f64>
The capture window’s time offset from the trigger (s).
Sourcepub fn trigger_edge(&self, trigger: &EdgeTrigger) -> Result<()>
pub fn trigger_edge(&self, trigger: &EdgeTrigger) -> Result<()>
Configure the edge trigger, applying only the fields that are set.
Sourcepub fn trigger(&self) -> Result<TriggerSettings>
pub fn trigger(&self) -> Result<TriggerSettings>
The trigger as the instrument has it.
Sourcepub fn measure(&self, m: Measurement) -> Result<Option<f64>>
pub fn measure(&self, m: Measurement) -> Result<Option<f64>>
Read one quantity from this channel. None when the capture does
not contain it (a period on a DC level).
Sourcepub fn measure_all(&self) -> Result<Measurements>
pub fn measure_all(&self) -> Result<Measurements>
Every quantity this channel’s capture supports, read from one capture so the values agree with each other.