Hi can any one help me how to send the below mentioned airbag_01 message should be sent cyclically in main test. which test is done capl test module in void maintest()
message Airbag_01 Airbag;
Hi can any one help me how to send the below mentioned airbag_01 message should be sent cyclically in main test. which test is done capl test module in void maintest()
message Airbag_01 Airbag;
you should create an on timer function to set the scheduling. Build up your message and output it whenever the timer reaches the limit. Capl has a really powerful help section. If more help is needed feel free to ask.
Hard to understand your question. The following code sends a message periodically each 5 sg:
variables
{
message Airbag_01 Airbag;
}
on timer send_Airbag
{
// Set values:
// Airbag.byte(0) = 0;
// ...
// Send
output(Airbag);
// Cycle each 5 sg
settimer(send_Airbag, 5000);
}
on start
{
// 5 sg
settimer(send_Airbag, 5000);
}