Why are the write messages sent twice in CANoe 10?

Viewed 27

When I'm starting the measurement, stopping the measurement and clicking the panel buttons the write messages I placed inside the functions are sent twice. For the buttons (made with environment variables) it could be due to the clicking (press and release), but for onstart & onstop I didn't find any trigger to sent the messages two times. Is there any way to fix it?

The Code, which runs on startup is shown below:

 on start
    {
      write("Start...");
      // disable panel
      enableControl("Battery_panel", FALSE); 
      activateRemoteControl(TRUE);
      setCurrentPS(0);
      setCurrentEL(0); 
      
    }

The setCurrent Functions aren't calling the start procedure again, they are just for setting the Currents of the power adapter

0 Answers
Related