Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
coTfsODChkSingleEntryNotExist (Level 2)
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE
Note
Before using this function you have to call coTfsSetNodeId to set the internal node ID.
Function Syntax
long coTfsODChkSingleEntryNotExist( dword index, dword subIndex );
Description
The function checks with a SDO upload if the given object does not exist in the object dictionary. The device must answer with one of these SDO abort codes: 0x08000000, 0x06020000 or 0x06090011.
If the entry exists and the subindex is 0, the functions checks automatically the subindexes 1..255.
Parameters
- index: Object index
- subIndex: Object subindex
Return Values
Error code
Example
long retValFunc = kTestStepPassed; /* to store the return value of function */
long nodeId = 112; /* Node-Id of DUT */
dword index = 0x9999;
dword subIndex = 0x0;
char msg[100]; /* message */
retValFunc = kTestStepPassed;
msg[0] = '\0';
/* Set the node-ID of DUT */
strncpy(msg,"Set node-ID", elCount(msg));
retValFunc = coTfsSetNodeId(nodeId);
/* call test function */
if (retValFunc == kTestStepPassed)
{
strncpy(msg,"coTfsODChkSingleEntryNotExist", elCount(msg));
retValFunc = coTfsODChkSingleEntryNotExist( index /*dword index*/, subIndex /*dword subIndex*/ );
} /* if */
/* evaluation of returned value */
if (retValFunc != kTestStepPassed)
{
/* outputs a failure message to the Write Window */
write("%s failed", msg);
/* Set testfunction or test case as failed; The message will be appeared in report if it is enabled */
/* testStepFail( "CAPL text", "%s failed", msg); */
} /* if */
Used Constants