Table of Contents

Example: SmartBattery

This example reads information such as the remaining capacity from a smart battery fuel gauge via the TWI bus. The bus is implemented with two DIOs, see also I2C.

Project: ZSOM-Control_SmartBattery.lvproj, VI SmartBattery_RT_main.vi. In LabVIEW, open Help → Find Examples and search for “ZSOM”.

Connection

RT code: front panel
RT code: front panel

Front panel

Indicator Function
remaining [%] Remaining capacity in percent
remaining hours Remaining operating time in hours
Voltage [V] Battery voltage
Current [A] Battery current
Power [W] Battery power

How it works

RT code: block diagram
RT code: block diagram