Main Content

Battery.MetaData

Define battery metadata

Description

Use the Battery.MetaData object to define the battery metadata. A Battery.PulseSequence object contains the Battery.MetaData object. You must specify the metadata values.

Creation

Description

MATLAB creates a batmetaObj = Battery.MetaData object that defines the battery metadata.

example

Properties

expand all

Battery identification name.

Data Types: double

Battery rating.

Data Types: char

Dataset name.

Data Types: char

Dataset date.

Data Types: char

Dataset source.

Data Types: char

Test type, for example charge or discharge.

Data Types: char

Test current, in A.

Data Types: double

Test temperature, in C.

Data Types: double

Examples

collapse all

This example shows how to create a Battery.MetaData object and set properties.

Create a Battery.MetaData object.

batmetaObj=Battery.MetaData;

Set Battery.MetaData properties.

batmetaObj.BatteryId='myBatteryId';
batmetaObj.RatingAh='myRatingAh';
batmetaObj.Name='myName';
batmetaObj.Date='myDate';
batmetaObj.Source='mySource';
batmetaObj.TestType='Charge';
batmetaObj.TestCurrent=300;
batmetaObj.TestCurrent=120;

Display Battery.MetaData properties.

disp(batmetaObj)

Version History

Introduced in R2016b