F U N C T I O N C A L L S
int WINAPI Read_Latched_Angle(int Card, int Channel, int* Coarse,
int* Fine)
DESCRIPTION
After the Two Speed Latch bit is set, the latched data can be read to verify operation of the
card. A bit will be set when the data has been latched. By reading this bit, the routine will
know when to read the angles. The two angles are returned through the Coarse and Fine
parameters. When Latched = 0, the latched angles can be read.
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 2 for the channel pairs of interest.
0 = Channel 0 (Coarse) and Channel 1 (Fine)
1 = Channel 2 (Coarse) and Channel 3 (Fine)
2 = Channel 4 (Coarse) and Channel 5 (Fine)
Coarse = Current coarse angle data (should be zero), set as a variable.
Fine = Current fine angle data (should be zero), set as a variable.
RETURNED DATA
Returns the Latched status of the selected channel pairs. 0 = channels latched (data valid),
1 = channels unlatched (data invalid).
EXAMPLE CODE
Code Result/Returned
Data
int Angle;
int* Coarse;
int* Fine;
Angle = Read_Latched_Angle(1,1,Coarse,Fine);
Returns the
latched status of
Two Speed channels
2 (Coarse) and 3
(Fine). Fills
variable Coarse
with the current
angle data of
channel 2. Fills
variable Fine with
the current angle
data of channel 3.
Data Device Corporation
SB-3622X Manual
52
Summary of Contents for DRC-11525
Page 3: ......