F U N C T I O N C A L L S
void WINAPI Program_Frequency (int Card, int Frequency)
DESCRIPTION
This routine allows the user to change the operating frequency of the card oscillator.
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.
Frequency = an integer between 0 and 255 that corresponds to a bit multiplier. The product
of the bit multiplier and the output scaling represents the true frequency.
To change the Oscillator frequency, enter the bit multiplier. The bit multiplier, which is an
integer, is determined by the following formula.
Frequency = (bit
multiplier
) X (Hz/bit)
Board
Type
Output
Scaling
(Hz/bit)
Examples
Bit
Multiplier
Resultant
Frequency
Bit Multiplier
Range
60.8 Hz = (8) X (7.6)
8
60.8 Hz
60 Hz
7.6 Hz/bit
402.8 Hz = (53) X (7.6)
53
402.8 Hz
8 - 255
404.6 Hz = (7) X (57.8)
7
404.6 Hz
400 Hz
57.8 Hz/bit
2023.0 Hz = (35) X (57.8)
35
2023.0 Hz
6 - 255
Note:
Model IB uses 60 Hz multiplier
RETURNED DATA
This routine does not return any data.
EXAMPLE CODE
Code Result/Returned
Data
Program_Frequency(5,53);
Assuming card #5 is a 60 Hz
type, the oscillator of card
#5 will be set to 402.8 Hz.
Data Device Corporation
SB-3621X Manual
53
Содержание SB-3621 Series
Страница 3: ......