#use "sonyxmit.icb" int data= 0; void main() { int counter= 0; int flag= 0; while (!start_button()) { if (stop_button()) { flag= 1; counter++; } while (flag == 1) { if (!stop_button()) flag= 0; } printf("Group No.=%d\n",counter); } data = 10 * counter; start_process(Printing()); while (1) { sony_xmit(data); msleep(150L); defer(); } } void Printing() { while (1) { printf("f=%d\n",data); msleep(50L); } }