![DDC SB-3621 Series Скачать руководство пользователя страница 60](http://html1.mh-extra.com/html/ddc/sb-3621-series/sb-3621-series_hardware-and-software-manual_517526060.webp)
F U N C T I O N C A L L S
long WINAPI Read_Angle (int Card, int Channel)
DESCRIPTION
Using the given channel, the appropriate register is selected, and the thirty-two 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 32 bit long integer ( range = 0x0000
to 0xFFFF).
EXAMPLE CODE
Code Result/Returned
Data
Read_Angle(3,5);
Returns the angle (as a 32 bit
long integer) for card #3,
channel 5.
180
90
45
22.5
11.25
5.625
2.8125
1.40625
.703125
.3515625
.17578125
.087890625
.0439453125
.02197265625
.010986328125
.0054931640625
MSB
LSB
Theoretical Angle Values
Angle =
Reading X 360
2
16
Upper 16 bits unused
Data Device Corporation
SB-3621X Manual
47
Содержание SB-3621 Series
Страница 3: ......