Skip to main content
Open topic with navigation CAPL Functions » MOST » mostConfigureBusloadAsync

mostConfigureBusloadAsync

Valid for: CANoe DE Note
This function is only available with MOST hardware VN2600, VN2610 and VN2640.

Function Syntax

long mostConfigureBusloadAsync (long channel, long rate, long countertype, long counterpos, long destadr, long pktdatalen, BYTE pktdata[]);

Description

The function configures the busload generator for the asynchronous channel. With the specified rate the generator tries to send packets. Due to arbitration delays, the busload actually generated can deviate from the specified rate. As an option, the packets can be supplied with a sequence counter. Load generation can be started with the mostGenerateBusloadAsync() function. Busload can also be generated without CAPL programming using the MOST Stress Window. Note
Busload can also be generated without CAPL programming using the MOST Stress Window.

Parameters

  • channel: Channel of the connected MOST hardware.
  • rate: Number of packets per second. The maximum transmission rate depends on the packet length, the synchronous bandwidth control (SBC) and the MOST loop frequency.
  • countertype: Sequence counter type:
    • 0: No sequence counter
    • 1: 1 byte counter
    • 2: 2 byte counter (higher quality byte first)
    • 3: 3 byte counter (higher quality bytes first)
    • 4: 4 byte counter (higher quality bytes first)
  • counterpos: Position of the lowest value sequence counter byte.
  • destadr: Destination address
  • pktdatalen: Number of user data bytes (MOST25: 0<= pktdatalen <= 1014, MOST150: 1 <= pktdatalen <= 1524)
  • pktdata[]: User data

Return Values

Example

mostGenerateBusloadAsyncmostConfigureBusloadCtrloutputMostPkt