L I B R A R Y F U N C T I O N S
Data Device Corporation
SB-3624XIX-3L0 Manual
www.ddc-web.com
Rev D -10/15
75
WORD WINAPI Read_Angle_WORD (int Card, int Channel)
DESCRIPTION
Using the given channel, the appropriate register is selected, and the sixteen bits are read from the
register. No conversion is done in this routine.
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.
RETURNED DATA
This routine returns the angle of a given channel as a WORD ( range = 0x0000 to 0xFFFF).
EXAMPLE CODE
Code
Result/Returned Data
WORD Angle;
Angle = Read_Angle_WORD(3,5);
Returns the angle (as a WORD) for card #3,
channel 5.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com