Manual Number: 00650-010-6
Page 26
AOB8/16 &AOB16/16 Manual
temp = 65535 - temp;
progstruct[i+counts/2+1] = (int)temp;
}
clrscr();
printf(“Generating triangle wave, press any key to stop....”);
sendtoport();
}
/* end triangle curve */
Function:
sawcurve() - local routine
Purpose:
Calculate the points to create a sawtooth wave
Input:
None
Calls:
None
Output:
None
void sawcurve()
{
int
i;
double
slope,temp;
if (counts == 0) return;
clrscr();
printf(“Calculating sawtooth wave points....”);
slope = 4095.0 / counts;
/* sawtooth slope*/
for(i = 0,i <counts;i++)
{
temp = slope * i;
progstruct[i] = (int) temp;
}
clrscr();
printf(“Generating sawtooth wave, press any key to stop....”);
sendtoport();
}
/* end sawcurve */
Function:
menulist() - local routine
Purpose:
Display the menu choice on the screen
Input:
None
Calls:
None
Output:
None
Summary of Contents for AOB8/16
Page 1: ...Model AOB8 16 AOB16 16 Product Manual MANUAL NUMBER 00650 010 6C...
Page 3: ...Page iv This page intentionally left blank...
Page 7: ...Page viii This page intentionally left blank...
Page 15: ...Manual Number 00650 010 6 Page 6 AOB8 16 AOB16 16 Manual Figure 3 1 Option Selection Map...
Page 21: ...Manual Number 00650 010 6 Page 12 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Page 25: ...Manual Number 00650 010 6 Page 16 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Page 27: ...Manual Number 00650 010 6 Page 18 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Page 31: ...Manual Number 00650 010 6 Page 22 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Page 37: ...Manual Number 00650 010 6 Page 28 AOB8 16 AOB16 16 Manual This page intentionally left blank...