#include #include #include #include "dask.h" char *file_name="7200d"; U32 DoBuf[2000]; U32 read_count=2000; F64 sample_rate=1000; main() { I16 card, err, card_num; U32 i; BOOLEAN halfReady; U32 count=0, count1; printf("This program inputs %d data by PCI-7200 in %d Hz by double-buffer mode, and store data to file '%s.dat'. It will not stop until you press a key.\n\nPress any key to start the operation.\n", read_count, (int)sample_rate, file_name); printf("Please input a card number: "); scanf(" %d", &card_num); //getch(); if ((card=Register_Card (PCI_7200, card_num)) <0 ) { printf("Register_Card error=%d\n", card); exit(1); } for (i=0; i