F U N C T I O N C A L L S
void WINAPI Program_Angle(int Card, int Channel, WORD Angle)
DESCRIPTION
This function takes the angle inputted by the user and writes it to the card. This function
checks to make sure that the card is not in Dynamic Mode. Therefore, Dynamic Mode is
disabled before the angle is written 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.
Channel = an integer between 0 and 5 for the channel of interest.
Angle= a WORD that represents the angle that is to be written to the card. The angle must
be in the range of 0 to 0xFFFF. Use the Dec to Bin function to convert from a
degree-based number to Synchro Binary (i.e. 90 degrees = 0x4000).
RETURNED DATA
This routine does not return any data.
EXAMPLE CODE
Code Result/Returned
Data
Program_Angle(0,0,0x4000);
Writes an angle of 90 degrees
to card #0, channel 0.
Data Device Corporation
SB-3622X Manual
46