This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Analog Input

Read analog values from the 3-wire port on VEX EDR V5 Robot Brain

  • Library:
  • Simulink Coder Support Package for VEX EDR V5 Robot Brain / Sensors

Description

The Analog Input block reads analog values from the selected 3-wire port on VEX® EDR V5 Robot Brain. Use the block to measure the output of sensors (voltage), such as potentiometer, connected to the 3-wire port. The 12-bit sensor value has a range of 0 to 4095 that corresponds to an input voltage of 0V to 5V. You can use up to eight 3-wire ports on the VEX EDR V5 Robot Brain.

Ports

Output

expand all

Data Types: double

Parameters

expand all

Select the 3-wire port on the VEX EDR V5 Robot Brain from which you want to read the analog value.

Do not assign the same port to more than one Analog Input block within the same model.

Specify how often the block should read the values from the 3-wire port.

Introduced in R2018b