Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » File Server Interaction Layer (FS IL) » FSIL_ControlStop

FSIL_ControlStop

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long FSIL_ControlStop(); // form 1
  • long FSIL_ControlStop(dword option); // form 2
  • long FSIL_ControlStop(dbNode fs); // form 3
  • long FSIL_ControlStop(dbNode fs, dword option); // form 4

Description

Deactivates the File Server and stops sending cyclic messages. A Cannot Claim Address message is sent if the NMT is activated and the message is not suppressed with the parameter option set to 1. Removes all device descriptor object pools (DDOPs) too.

Parameters

  • fs: FS simulation node to apply the function
  • option: Options
    1: Suppress sending Cannot Claim Address message

Return Values

  • 0: Function has been executed successfully
  • < 0: An error has occurred, see IL Error Code

Example

Example form 4
void SetDataMaskSize(dword newSize)
{
  // data mask size can only be changed if FS is stopped
  FSIL_ControlStop(FS, 1);
  // wait until Working Sets have detected that FS is offline
  TestWaitForTimeout(3500);
  // change size and restart FS
  FSIL_SetNodeProperty(FS,"dataMaskSize", newSize);
  FSIL_ControlStart(FS);
}