Documentation

MaxSoundPressureLevel

Sound pressure level for microphone channels

Description

When working with the session-based interface, use the MaxSoundPressureLevel set the maximum sound pressure of the microphone channel in decibels.

Values

The maximum sound pressure level is based on the sensitivity and the voltage range of your device. When you sent your device Sensitivity, the MaxSoundPressureLevel value is automatically corrected to match the specified sensitivity value and the device voltage range. You can also specify any acceptable pressure level in decibels. Refer to your microphone specifications for more information.

Example

Change Maximum Sound Pressure of Microphone

Change the Sensitivity of a microphone channel and set the maximum sound pressure level to 10.

Create a session and add a microphone channel.

s = daq.createSession('ni');
ch = addAnalogInputChannel(s,'cDAQ1Mod3', 0, 'Microphone')
ch = 

Data acquisition analog input microphone channel 'ai0' on device 'cDAQ1Mod3':

          Sensitivity: 'Unknown'
MaxSoundPressureLevel: 'Unknown'
    ExcitationCurrent: 0.002
     ExcitationSource: Internal
             Coupling: AC
       TerminalConfig: PseudoDifferential
                Range: -5.0 to +5.0 Volts
                 Name: ''
                   ID: 'ai0'
               Device: [1x1 daq.ni.CompactDAQModule]
      MeasurementType: 'Microphone'
        ADCTimingMode: ''

Set the channel's sensitivity to 3 0.037.

ch.Sensitivity = 0.037
ch = 

Data acquisition analog input microphone channel 'ai0' on device 'cDAQ1Mod3':

          Sensitivity: 0.037
MaxSoundPressureLevel: 136
    ExcitationCurrent: 0.002
     ExcitationSource: Internal
             Coupling: AC
       TerminalConfig: PseudoDifferential
                Range: -135 to +135 Pascals
                 Name: ''
                   ID: 'ai0'
               Device: [1x1 daq.ni.CompactDAQModule]
      MeasurementType: 'Microphone'
        ADCTimingMode: ''

Set the channel's maximum sound pressure to 10 dbs.

ch.MaxSoundPressureLevel = 10
ch = 

Data acquisition analog input microphone channel 'ai0' on device 'cDAQ1Mod3':

          Sensitivity: 0.037
MaxSoundPressureLevel: 10
    ExcitationCurrent: 0.002
     ExcitationSource: Internal
             Coupling: AC
       TerminalConfig: PseudoDifferential
                Range: -135 to +135 Pascals
                 Name: ''
                   ID: 'ai0'
               Device: [1x1 daq.ni.CompactDAQModule]
      MeasurementType: 'Microphone'
        ADCTimingMode: ''
Was this topic helpful?