update
This commit is contained in:
@@ -19,6 +19,8 @@ write_fs(frequency: int) -> sampling freq
|
||||
'''
|
||||
|
||||
import nsrt_mk3_dev
|
||||
from nsrt_mk3_dev import Weighting
|
||||
|
||||
|
||||
nsrt = nsrt_mk3_dev.NsrtMk3Dev('/dev/ttyACM0')
|
||||
|
||||
@@ -27,6 +29,14 @@ nsrt = nsrt_mk3_dev.NsrtMk3Dev('/dev/ttyACM0')
|
||||
nsrt.write_tau(60)
|
||||
#####################
|
||||
|
||||
#####################
|
||||
#change Weighting curve
|
||||
# - Weighting.DB_A (A-weighting - most common for environmental noise)
|
||||
# - Weighting.DB_C (C-weighting - for peak measurements)
|
||||
# - Weighting.DB_Z (Z-weighting - linear/flat response)
|
||||
nsrt.write_weighting(Weighting.DB_A)
|
||||
#####################
|
||||
|
||||
freq_level = nsrt.read_fs() #current sampling frequency
|
||||
time_constant = nsrt.read_tau() #reads the current time constant
|
||||
leq_level = nsrt.read_leq() #current running LEQ and starts the integration of a new LEQ.
|
||||
|
||||
Reference in New Issue
Block a user