Analog Input Get

This MotoHawk™ block provides access to the value of the A/D converter channel associated with an Analog Input Definition Block.

Block ID

motohawk_ain_read

Library

MotoHawk_lib/Analog I/O Blocks

Description

The output value is the width of the selected type and represents the ratio of the voltage level of the analog resource to the Reference Voltage (usually 5V), as seen by the controller chip(s). In most cases, there are voltage divider and shifter circuits on the target module that map the voltage being measured into the range that the controller chip(s) can measure, usually 0 to 5 Volts. See the detailed help for the Analog Input block for a detailed description of how the output value and its size is determined by the Data Type, Reference and Output Width settings on the Analog Input block, as well as the additional circuits on the module, external to the controller chip(s)

Block Parameters

Parameter Field Values Comments/Description
Reference Name Alpha-numeric text, single-quote enclosed Enter a name that exactly matches that defined by the corresponding Analog Input Definition block. No special characters, such as spaces, dashes, commas (underscore allowed).
Data Type Drop-down list Assign Data Type: int8, uint8, uint16, etc. This type must match the type specified in the Analog Input block.