pub struct Counter { /* private fields */ }Expand description
Frequency counter session view (IVI-inspired / SCPI :MEASure, :COUNter).
Implementations§
Source§impl Counter
impl Counter
pub fn new(session: InstrumentSession) -> Self
pub fn session(&self) -> &InstrumentSession
pub fn session_mut(&mut self) -> &mut InstrumentSession
Sourcepub fn measure_frequency(&mut self) -> Result<f64>
pub fn measure_frequency(&mut self) -> Result<f64>
Measures frequency in hertz (SI).
Sourcepub fn measure_period(&mut self) -> Result<f64>
pub fn measure_period(&mut self) -> Result<f64>
Measures period in seconds (SI).
Sourcepub fn set_gate_time(&mut self, seconds: f64) -> Result<()>
pub fn set_gate_time(&mut self, seconds: f64) -> Result<()>
Sets gate / aperture time in seconds (SI).
Sourcepub fn select_channel(&mut self, channel: u32) -> Result<()>
pub fn select_channel(&mut self, channel: u32) -> Result<()>
Selects the measurement channel (1-based).
Sourcepub fn reset_totalize(&mut self) -> Result<()>
pub fn reset_totalize(&mut self) -> Result<()>
Resets the totalize counter.
Sourcepub fn read_totalize(&mut self) -> Result<f64>
pub fn read_totalize(&mut self) -> Result<f64>
Reads totalize count.
Auto Trait Implementations§
impl !RefUnwindSafe for Counter
impl !Sync for Counter
impl !UnwindSafe for Counter
impl Freeze for Counter
impl Send for Counter
impl Unpin for Counter
impl UnsafeUnpin for Counter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more