Documentation

This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English verison of the page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 $\frac{v}{g}$, or volts per gravity.

Sensitivity in a microphone channel is expressed as $\frac{v}{pa}$, 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:

```ch1 = s.Channels(1) ch1.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 ```