pub struct AsyncScope<'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> AsyncScope<'a>
impl<'a> AsyncScope<'a>
Sourcepub async fn is_enabled(&self) -> Result<bool>
pub async fn is_enabled(&self) -> Result<bool>
Whether this net’s channel is on, as the instrument reports it.
Sourcepub async fn force_trigger(&self) -> Result<()>
pub async fn force_trigger(&self) -> Result<()>
Force a trigger now.
Sourcepub async fn autoscale(&self) -> Result<()>
pub async fn autoscale(&self) -> Result<()>
Let the instrument pick scale, timebase and trigger.
Sourcepub async fn set_scale(&self, volts_per_div: f64) -> Result<()>
pub async fn set_scale(&self, volts_per_div: f64) -> Result<()>
Set this channel’s vertical scale (V/div).
Sourcepub async fn set_timebase(&self, seconds_per_div: f64) -> Result<()>
pub async fn set_timebase(&self, seconds_per_div: f64) -> Result<()>
Set the timebase (s/div).
Sourcepub async fn set_coupling(&self, mode: &str) -> Result<()>
pub async fn set_coupling(&self, mode: &str) -> Result<()>
Set this channel’s input coupling ("dc", "ac"; a Rigol also
takes "gnd").
Sourcepub async fn set_probe(&self, ratio: f64) -> Result<()>
pub async fn set_probe(&self, ratio: f64) -> Result<()>
Set this channel’s probe attenuation (1 for 1x, 10 for 10x).
Sourcepub async fn set_offset(&self, volts: f64) -> Result<()>
pub async fn set_offset(&self, volts: f64) -> Result<()>
Set this channel’s vertical offset (V).
Sourcepub async fn set_time_offset(&self, seconds: f64) -> Result<()>
pub async fn set_time_offset(&self, seconds: f64) -> Result<()>
Move the capture window in time relative to the trigger (s).
Sourcepub async fn time_offset(&self) -> Result<f64>
pub async fn time_offset(&self) -> Result<f64>
The capture window’s time offset from the trigger (s).
Sourcepub async fn trigger_edge(&self, trigger: &EdgeTrigger) -> Result<()>
pub async fn trigger_edge(&self, trigger: &EdgeTrigger) -> Result<()>
Configure the edge trigger, applying only the fields that are set.
Sourcepub async fn trigger(&self) -> Result<TriggerSettings>
pub async fn trigger(&self) -> Result<TriggerSettings>
The trigger as the instrument has it.
Sourcepub async fn measure(&self, m: Measurement) -> Result<Option<f64>>
pub async 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 async fn measure_all(&self) -> Result<Measurements>
pub async fn measure_all(&self) -> Result<Measurements>
Every quantity this channel’s capture supports, read from one capture so the values agree with each other.