F U N C T I O N C A L L S
void WINAPI Static_TwoSpeed(int Card, int Channels, double
CoarseAngle)
DESCRIPTION
This routine writes a user-defined Coarse angle to the Coarse channel, and uses the
programmed ratio to calculate and write the Fine angle to the Fine channel. The routine will
also check to make sure the card is not in Dynamic Mode when writing to the card.
INPUT DATA
Card = an integer between 0 and 7 for the card of interest. The card number is set in the
MOTION FEEDBACK BOARD MANAGER.
Channels = an integer 0, 2 or 4.
0 – Channel 0 and Channel 1
2 – Channel 2 and Channel 3
4 – Channel 4 and Channel 5
Coarseangle = a double that represents the new Coarse angle to be written to the card.
RETURNED DATA
This routine does not return any data.
EXAMPLE CODE
Code Result/Returned
Data
Static_TwoSpeed(0,0,97.2);
Writes the angle 97.2 to the
coarse channel of channel pair
#0. Determines and writes the
ideal corresponding fine angle
to the fine channel of channel
pair #0.
Data Device Corporation
SB-3622X Manual
57