You only call SampleApp_ComPeriodicMessage when "if (w == w1) " and "if (w > T[p])". If these two rules are not meet, the EVENT_comunication_start won't be triggered. Could you set break points inside these two rules and make sure your code will call SampleApp_ComPeriodicMessage?
↧