Documentation Center

  • Trial Software
  • Product Updates

Sensitivity

Sensitivity of an analog channel

Description

When working with the session-based interface, the Sensitivity property to set the accelerometer or microphone sensor channel.

Sensitivity in an accelerometer channel is expressed as , or volts per gravity.

Sensitivity in a microphone channel is expressed as , or volts per pascal.

Examples

Create a session object, add an analog input channel, with the 'accelerometer' MeasurementType.

s = daq.createSession('ni');
s.addAnalogInputChannel('Dev4', 'ai0', 'accelerometer')

Data acquisition session using National Instruments hardware:
   Will run for 1 second (2000 scans) at 2000 scans/second.
   Number of channels: 1
      index Type Device Channel      MeasurementType             Range        Name
      ----- ---- ------ ------- -------------------------- ------------------ ----
      1     ai   Dev4   ai0     Accelerometer (PseudoDiff) -5.0 to +5.0 Volts

Change the Sensitivity to 10.2e-3 V/G:

s.Channels(1).Sensitivity = 10.2e-3

s = 

Data acquisition session using National Instruments hardware:
   Will run for 1 second (2000 scans) at 2000 scans/second.
   Number of channels: 1
      index Type Device Channel      MeasurementType               Range          Name
      ----- ---- ------ ------- -------------------------- ---------------------- ----
      1     ai   Dev4   ai0     Accelerometer (PseudoDiff) -490 to +490 Gravities  
Was this topic helpful?