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
70
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 Hz
7.6 Hz/bit
60.8 Hz = (8) X (7.6)
8
60.8 Hz
8 - 255
402.8 Hz = (53) X (7.6)
53
402.8 Hz
400 Hz
57.8 Hz/bit
404.6 Hz = (7) X (57.8)
7
404.6 Hz
6 - 255
2023.0 Hz = (35) X (57.8)
35
2023.0 Hz
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.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com