
GDS-806/810/820/840 Programming Manual
82
Delay(1000);
ibwrt (Dev, "*IDN?\n", 6L); /*Get the unique identification */
printf("*IDN?\n\r"); /*code of the GDS-806/810/820/840.*/
if((ibsta&ERR)||(ibsta&TIMO)){
ShowIbsta(1);
return 0;
}
while(1){
ibrd (Dev, ReadBuffer, 100); /*Read datas from input bufer. */
if((ibsta&ERR)||(ibsta&TIMO)){
ShowIbsta(0);
return 0;
}
for(i=0;i<ibcntl;i++){
ch=ReadBuffer[i];
WaveBuf[count++]=ch;
}
if(ch=='\n'){
WaveBuf[count]=0x00;
printf("%s\n\r",WaveBuf);
break;
}
}
Delay(1000);
ibwrt (Dev, ":RUN\n", 5L); /*Let the GDS-806/810/820/840 run. */
printf(":RUN\n\r");
if((ibsta&ERR)||(ibsta&TIMO)){
ShowIbsta(1);
return 0;
}
Komentáře k této Příručce