ADC Pin Element

The ADC pin element is used to read the voltage of an ADC pin.

The ADC pin element is located in the Element Toolbox within Studio’s Embedded tab.

Properties

The following properties can be changed for the ADC pin element:

Name

The name of the element.

Instance

The ADC driver instance number to use. If unsure, leave it set to the default value.

ADC Pin

The device’s ADC pin the element is connected to.

Number of Samples

The number of samples the ADC driver takes an average from before returning a value.

Timeout

The length of time to block execution while awaiting a return value from the ADC pin.

Triggers

The following triggers are available to execute events from within the ADC pin element:

Triggered

Execute an event when the source element connected to the ADC pin triggers.

Raw Read

Execute an event when raw ADC pin data is read.

Voltage Read

Execute an event when the pin’s voltage is read.

Abilities

The following abilities are available for the ADC pin element when its source element triggers:

Trigger

Trigger the element(s) that follow the ADC pin element.

Read Raw

Read the pin’s raw data.

Read Voltage

Read the pin’s voltage.