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.

Battery Read

Read the battery voltage of a battery connected to the TFC Shield

Library

Simulink Coder Support Package for NXP FRDM-KL25Z Board/ FRDM-TFC Shield

Description

Read the voltage of the battery connected to the TFC shield. The block output emits a value in the range 0.0 –1.0 to indicate the current voltage level of the battery as a percentage of an assumed 7.2 Volt battery.

During simulations without the hardware, this block emits zeroes.

Parameters

Sample time

Specify how often the block reads the battery voltage level, in seconds.