#include <stdio.h>

while (!kbhit()){
		  num_serial = print_serial();
		  if(!num_serial%8){
		  	if(!strcmp( "noise", command_char )){
		  		send_command( "N o i s e", -10);
		  	}
		  	else if(!strcmp( "Voltage", command_char )){
		  		send_command( "V", parameter);
		  	}
		  	else if(!strcmp("Poll", command_char)){
		  		send_command("Poll", 0);
		  	}
		}
	  }
	  fflush(stdin);
	  while (((ch=getch())!='\r') && (i < KEY_IN_BUFLEN - 1)) //press Enter to stop while loop