Main Content

arxmlDatabase

Create ARXML database from ARXML file

Since R2025a

Description

ARXMLdbObj = arxmlDatabase(arxmlFile) parses the specified ARXML file and creates a linked database object for use with ISignalIPdus. You can specify arxmlFile as a full or relative path, or as only a file name on the path. You can use the returned ARXML Database object as an input argument to blfread or canMessageTimetable for message decoding.

Although CompuMethods should be primarily defined in iSignals, the toolbox also support CompuMethods defined in the SystemSignal that connects to the iSignal. One iSignal can reference only one SystemSignal.

example

Examples

collapse all

Parse an ARXML file and create an ARXML database object in the workspace.

ARXMLdbObj = arxmlDatabase("SampleFile.arxml")
ARXMLdbObj = 
  Database with properties:

    Name: "SampleFile.arxml"
    Path: "C:\data\SampleFile.arxml"
     CAN: [1×1 shared.vnt.arxml.protocol.CAN]

Use the Database object when decoding CAN messages.

CANmsgs = blfread("Logging_BLF.blf", 2, ProtocolMode="CAN", Database=ARXMLdbObj);

Input Arguments

collapse all

ARXML file specified as a string or character vector. It can be a full or relative path, or a file name on the path.

Example: "ARXMLdbFile.arxml"

Data Types: char | string

Output Arguments

collapse all

ARXML database object with properties describing ARXML file and message protocol.

Version History

Introduced in R2025a