ICP DAS USA I-8411 User Manual page 85

I-8000 series for c language
Hide thumbs Also See for I-8411:
Table of Contents

Advertisement

API for showing data from COM ports
6. printCom()
Functions such as printfCom() in the C library allow data to be output from COM
ports.
For example, showing data from the COM1 port.
#include <stdio.h>
#include "8000E.h"
void main(void)
{
int i;
/* Initiate the upac5000 library */
InitLib();
InstallCom(1, 115200, 8, 0, 1);
for (i=0;i<10;i++)
{
printCom(1,"Test %d\n\r", i);
}
Delay(10);
/* Wait for all data are transmitted to COM port */
RestoreCom(1);
}
I-8000 Series (C Language Based) User Manual, Version 1.0.1
Copyright © 2012 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
/* Install the COM1 driver */
Page: 85

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-8811I-8431-80I-8831-80I-8431I-8831

Table of Contents