Owner`s manual
M SERIES DAC
BASE UNIT AND MODULE OPERATION
____________________________________________________________________________
169
*
int n1;
for(n1=1;n1!=61;++n1){
if(get_connect()==0){
delay(1000);;
got_connect=0;;
} else{
got_connect=1;
break;
}
}
return (got_connect);
*
*
*
This code fragment waits up to 60 seconds for the function get_connect() to
go true.
4b. char *ctime()
Input: none
Output: pointer to a string
Description: The ctime() function returns a pointer to a string
of the following form:
day month date hours:minutes:seconds year\n.
No arguments are required. The buffer used by ctime() to hold the formatted output
string is overwritten each time the function is called. If you wish to save the contents
of the string, it is necessary to copy it elsewhere.
An example of the ctime() function is shown in the serout(...) function example
below.
4c. int serout(int a,int b,char *s)
Input: a - module number (1 to 16)
b - desired port number (1 to 4)
*s - pointer string for output
Output: 0 - successful