title: I want to execute code in C# after a specific function call in CAPL code
body: <p>My C# code starts and executes the CAPL code but when any specific function eg. abc(int a) is called internally by CAPL then I want to send data of parameter &quot;a&quot; in C# and perform calculation and send result back to same function &quot;abc&quot; and CAPL code should resume its execution from abc() as this function returns a value and that value should be from my calculated C# code.</p>
  <p>My issues:</p>
  <ol>
  <li>I dont know when abc function is called (abc is just en example actual function is predefined) So, want to know when this function is called and get parameters in C#.</li>
  <li>I tried by using &quot;onchange&quot; method in C# but onchange works after execution is completed of function &quot;abc&quot;. So, this is not useful as synchronization is not maintained and CAPL returns a default value.</li>
  <li>Tried using &quot;timer&quot; method but same issue of synchronization as CAPL is not stopping the execution it continues the execution till the timer.</li>
  <li>Tried using While loop with timer but CAPL gets lagged out and CANeo stops working</li>
  </ol>
  <p>I Hope sample code is not required as I just need a function</p>