ICP DAS USA I-8411 User Manual page 88

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

Advertisement

For example, reading and receiving data through COM1.
#include<stdio.h>
#include "8000E.h"
void main(void)
{
int quit=0, data;
InitLib();
/* Initiate the upac5000 library */
while(!quit)
{
if(Kbhit())
/* Check if any data is in the input buffer */
{
data=Getch();
Putch(data);
/* Send data to COM1 */
if(data=='q') quit=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
/* Read data from COM1 */
/* If 'q' is received, exit the program */
Page: 88

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents