Owner`s manual
M SERIES DAC
BASE UNIT AND MODULE OPERATION
____________________________________________________________________________
173
In this example the dial string ATDT18005551212\r is first transmitted to the modem
in Module 1. After a connection is made the string "123\r\nā is transmitted.
4h. int hang_up(int a,int 1)
Input: a - module number (1 to 16)
b - integer number 1
*s - pointer string for output
Output: O - successful
Description: The hang_up(...) function causes the selected module and port to go on-
hook. The selected module must be a V93 modem module.
Example: Assume a V93 modem host is installed as Module 1 and a V74 module
installed as Module 2.
char dial_str[10]={"ATDT18005551212\r"};
dial(1,1,dial str);
serout(2,1,ā123\r\nā);
delay(10000);
hang up(2,1);
In this example the dial string ATDT18005551212\r is first transmitted to the modem
in Module 1. When a connection is made, the string "123\r\nā is transmitted. After a
10 second delay the modem is disconnected with the hang_up(...) function.
4i. int atod(int a,int b,float *c)
Input: a - module number (1 to 16)
b - desired channel number (1 to 16 for the V77 or 1 to 6 for the V84)
*c - pointer to storage location
Output: O - successful (always)
Description: The atod(...) function stores the value of a specified V77 ADM-1 or V84
ADR-1 analog input channel into the floating point variable.
Example: Assume a V84 ADR-1 is installed as Module 3 and a V74 I/O module is
installed as Module 2.
double valdob;
float atodVal;
int s;
char string[30];