A SERVICE OF

logo

iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 103
7.7.2 How to print COM
The library of iVIEW-100 also supports functions like printf of standard C library
to produce a formatted output.
printCom is for all comports, printCom1/2 are for individual port. Before using
printCom you must call up InstallCom. Here’s the code.
int port=2;
/* for use COM2 */
int i;
InstallCom(port,57600,8,0,1);
/* install COM2 driver */
for(i=0; i<10;i++){
printCom(port,”Test %d\n\r”,i);
/* print data from COM2 */
}
…………
/* here is for user’s program code*/
RestoreCom(port);
/* un-install COM2 driver */