## Phidget Distance Sensor.lvlib:DistanceSensorSonarReflectionsUpdateEventExe.vi

The most recent reflections the channel has detected will be reported in this event, which occurs when the `DataInterval` has elapsed.

- If a `DistanceChangeTrigger` has been set to a non-zero value, the `SonarReflectionsUpdate` event will not occur until the distance has changed by at least the `DistanceChangeTrigger` value.
- The closest reflection will be placed at index 0 of the distances array, and the furthest reflection at index 7.
- If you are only interested in the closest reflection, you can simply use the `DistanceChange` event.
- The values reported as amplitudes are relative amplitudes of the reflections that are normalized to an arbitrary scale.

Device Support:

DST1000_0 (ver: 102) Distance Sensor 200mm : Unsupported

DST1200_0 (ver: 104, 105, 106) Sonar Distance Sensor : Supported

| error in (no error) error in can accept error information wired from VIs previously called.

| status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| code code is the error or warning code. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| source source describes the origin of the error or warning. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| Devices In A list of devices registered for the same type of event

| Device In Device # Identification

| Event Registration Refnum In Event # Identification

| error out error out passes error or warning information out of a VI to be used by other VIs.

| status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error out indicator on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| code code is the error or warning code. Right-click the error out indicator on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| source source string describes the origin of the error or warning. Right-click the error out indicator on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| Event? Returns TRUE if the event has executed, or FALSE otherwise.

| Devices Out Same as Devices In

| Device Out Same as Device In

| Index The index of the device that triggered the event within the Devices In array.

| phid Device # Identification of the device that triggered the event.

| Amplitudes The amplitude values

| Count The number of reflections detected

| Distances The reflection values

| Event Registration Refnum Out Same as Event Registration Refnum In