nsrt 0.1.0

A Rust driver for the NSRT_mk4 sound level meter
Documentation
  • Coverage
  • 72.97%
    27 out of 37 items documented0 out of 21 items with examples
  • Size
  • Source code size: 336.92 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.15 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 26s Average build duration of successful builds.
  • all releases: 26s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • brandonweeks/nsrt
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • brandonweeks

NSRT

A Rust driver for the NSRT_mk4 sound level meter from Convergence Instruments.

Features

  • Read sound pressure levels (SPL) in dB
  • Read LEQ (Equivalent Continuous Sound Level)
  • Configure weighting curves (A, C, Z)
  • Set sampling frequency and time constants
  • Read device information and temperature
  • Fluent API for device configuration

Usage

use nsrt::{NSRT, Weighting, SamplingFrequency};

fn main() -> nsrt::Result<()> {
    // Connect to the device and configure it in a single chain
    let mut nsrt = NSRT::open()?
        .weighting(Weighting::A)?
        .time_constant(1.0)?
        .sampling_frequency(SamplingFrequency::Freq48kHz)?
        .apply()?;

    // Read measurements
    let level = nsrt.read_level()?;
    println!("Current sound level: {:.1} dBA", level);

    Ok(())
}

See examples/simple_monitor.rs for a more complete example.