Skip to main content

CANopen Test Feature Set Node Layer CAPL Functions

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE To use the CAPL functions the node layer CANopenTfsNl.dll must be included. You can include the node layer by using the configuration dialog of the node on page Components or via the node attribute NodeLayerModules in the database. ON THIS PAGE:

Level 1

Enable the generation of CANopen protocol errors at any point and the exploitation of limit cases. The user is responsible for the communication here and can also write complete tests himself. Of course the mixing of the functions of the individual test levels is also possible. This section contains a brief listing of all Level 1 functions that are made available by the CANopen Test Feature Set node layer.

Guarding

Heartbeat

  • coTfsHeartbeatProducerCheckIfActive: Returns the current status of the heartbeat producer of the selected node. If this is switched on, the time settings are checked (passive test).

NMT

SDO

Level 2

Offer the experienced user the setting of some more complex tests. General data access is possible here. This section contains a brief listing of all Level 2 functions that are made available by the CANopen Test Feature Set node layer.

EMCY

Guarding

Heartbeat

Monitoring

NMT

Object Dictionary

SDO

SDO Abort

SYNC

  • coTfsSyncProducerDetail: Starts a freely-configurable SYNC producer test. This test requires the existence of the optional sync counter.

TPDO

LSS

Level 3

Can be implemented very easily and require only a little CANopen knowledge. With these tests, it is possible to check the absolute basic functionality of the DUT in the simplest way. This section contains a brief listing of all Level 3 functions that are made available by the CANopen Test Feature Set node layer.

Guarding

Heartbeat

  • coTfsHeartbeat: Executes a complete heartbeat producer and heartbeat consumer test with different time settings.

NMT

Object Dictionary

SDO

  • coTfsSDO: Executes an expedited/segmented/block download/upload test.

SYNC

Test Control

Make help functionality available to the user in order to describe the desired tests more easily and quickly.
  • This section offers a brief overview of the additional functions for test control of the CANopen TFS node layer.
  • This section offers a brief overview of the additional functions for test control of the CANopen TFS node layer.

Check

Parameter Control

Test Configurator

  • InitializeTestSystem: This function can be used to set common test settings by calling simple test functions as follows.
  • SendCANMessage: This function sends a simple CAN frame by using the CAPL function output.
  • StartBackgroundBusload: This function starts transmission of messages that produces a specified busload. With the parameter baudRate and busTrafficCategory a definite CANoe log file is defined according to CiA® TR308. The message sequences of that file are replayed during measurement.
  • StopBackgroundBusload: This function calls CAPL function StopReplayFile to stop an active generation of busload that has been started with StartBackgroundBusload.
  • TestWaitForTesterConfirmation: This function displays a window that shows the string to the tester. The tester can acknowledge the window with yes or no.
  • UserDefinedFunction: This function calls the customizable CAPL test function. The customizable function may be defined in a separated CAPL file and this file can be inserted in the Include program section via the syntax #include.
  • WriteTextInReport: This function writes the given text into report.
Test Feature Set Error CodesConstants Used in the CAPL ExamplesChecked Objects