ch375做設(shè)備的數(shù)據(jù)采集板,數(shù)據(jù)接收這樣寫對(duì)嗎?收不到數(shù)據(jù),用測(cè)試程序可以。
UCHAR iwbuffer[1],irbuffer[10],jjj[7]={3,2,5,6,99,8,7}; ULONG iwlenght,irlenght; UINT8 lll; CString str0; iwbuffer[0]='a'; iwlenght=1; irlenght=7; if(ljj%2==1) { if( CH375WriteData(0,&iwbuffer[0],&iwlenght)) { Sleep( 200 ); if(CH375ReadData(0,&irbuffer[0],&irlenght)) { for(lll=0;lll<7;lll++); jjj[lll]=*(irbuffer+lll); }