title: How to check in CAPL if message is receiving in simulation or not?
body: <p>I want check in CAPL if the message is receiving or not in the simulation and if it is not coming in the trace, i want send new message. I have tried using functions like. I want to check particular message is receving or not?
  TestWaitForPDU();TestWaitFormessage(msg,2000) etc but in simple configuration these are not working.</p>
  <p>I have also tried using istimerActive() or istimerunning(), but these function will not check if message has stopped receiving or transmitting.</p>
  <p>I am working in generic node.and i have tried something like this</p>
  <pre><code>on timer tslpack
  {
    int sleepack;
     long Systemtime[9];
    sleepack= isTimerActive(tslpack);
     //write(&quot;Bus Active&quot;);
      
   // write(&quot;Running Status %d&quot;,tslpack.isRunning());
   
  
   
  
          if(sleepack==1)
            {
              write(&quot;timer cancelled&quot;);
              cancelTimer(tslpack);
              Settimer(tslpack,100);
            }
            else
            {
              result=1;
          if(result ==1)
          {
           
          write(&quot;Bus Sleep&quot;);
            sleeptime=timeNow();
      
      
        
         result = 0;
         }
  
  }
  </code></pre>