Difference between revisions of "Extensions.DiagDataBrowsingPlus.GetDbFaultMemoryDiagTroubleCodeByTroubleCode"

From emotive
Jump to navigation Jump to search
Line 5: Line 5:
 
== OTL Syntax ==
 
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
DbDiagTroubleCodeTerm = DiagDataBrowsingPlus.GetDbFaultMemoryDiagTroubleCodeByTroubleCode(DbFaultMemoryTerm, IntegerTerm);
+
/// Local Declarations
 +
DiagDataBrowsingPlus.DbDiagTroubleCode DbDiagTroubleCodeVariable;
 +
/// Flow
 +
DbDiagTroubleCodeVariable = DiagDataBrowsingPlus.GetDbFaultMemoryDiagTroubleCodeByTroubleCode(DbFaultMemoryTerm, IntegerTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 24: Line 27:
 
== OTL Examples ==
 
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
/// Local Declarations
 +
 
DiagDataBrowsingPlus.DbComChannel DbComChannel;
 
DiagDataBrowsingPlus.DbComChannel DbComChannel;
 
List<DiagDataBrowsingPlus.DbFaultMemory> List_DbFaultMemory;
 
List<DiagDataBrowsingPlus.DbFaultMemory> List_DbFaultMemory;

Revision as of 04:38, 24 October 2018

Classification

Name GetDbFaultMemoryDiagTroubleCodeByTroubleCode
Short Description Gets the fault memories of the ComChannel
Class Term
Extension OTX DiagDataBrowsingPlus extension
Group DbFaultMemory related terms
Exceptions InvalidTypeException
Checker Rules -
Standard Compliant Yes

OTL Syntax

/// Local Declarations
DiagDataBrowsingPlus.DbDiagTroubleCode DbDiagTroubleCodeVariable;
/// Flow
DbDiagTroubleCodeVariable = DiagDataBrowsingPlus.GetDbFaultMemoryDiagTroubleCodeByTroubleCode(DbFaultMemoryTerm, IntegerTerm);

Description

GetDbFaultMemoryDiagTroubleCodeByTroubleCode returns the DbDiagTroubleCode (MCDDbDiagTroubleCode) object which matches given trouble code.

Icons Note.png NOTE — The appropriate MVCI system operation is MCDDbFaultMemory::getDbDiagTroubleCodeByTroubleCode

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
DbDiagTroubleCode Returns the DbDiagTroubleCode (MCDDbDiagTroubleCode) object which matches given trouble code.

Properties

Name Data Type Class Default Cardinality Description
faultMemory DbFaultMemory Term - [1..1] The element addresses the DbFaultMemory which DbDiagTroubleCode shall be returned.
troubleCode Integer Term - [1..1] The element addresses the trouble code from which the DbDiagTroubleCode object shall be returned.

OTL Examples

/// Local Declarations

DiagDataBrowsingPlus.DbComChannel DbComChannel;
List<DiagDataBrowsingPlus.DbFaultMemory> List_DbFaultMemory;
DiagDataBrowsingPlus.DbDiagTroubleCode DbDiagTroubleCode;

/// Flow

DbComChannel = DiagDataBrowsingPlus.GetDbComChannel("", "LL_GatewUDS");
List_DbFaultMemory = DiagDataBrowsingPlus.GetDbComChannelDbFaultMemories(DbComChannel);
DbDiagTroubleCode = DiagDataBrowsingPlus.GetDbFaultMemoryDiagTroubleCodeByTroubleCode(List_DbFaultMemory[0], 66051);

See also

GetDbComChannel
GetComChannelDbComChannel
GetDbComChannelDbFaultMemories
GetDbSubComponentDbFaultMemories