F U N C T I O N C A L L S
void WINAPI Program_Amplitude(int Card, int Amplitude)
DESCRIPTION
This routine allows the user to program the amplitude of the oscillator. Since there is only
one oscillator on the card, the channel does not have to be selected.
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.
Amplitude = 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 amplitude.
To change the Oscillator amplitude, enter the bit multiplier. The bit multiplier, which is an
integer, is determined by the following formula.
Amplitude = (bit multiplier) X (mV/bit)
Model
Number
Output
Scaling
(mV/bit)
Examples Bit
Multiplier
Resultant
Amplitude
Bit Multiplier
Range
I4
32.6 mV/bit
3.26 V = (100) X (.0326)
100
3.26 V
0 - 255
I5
240.0 mV/bit
25.92 V = (108) X (.240)
108
25.92 V
0 - 255
I6
635 mV/bit
114.935 V = (181) X (.635)
181
114.935 V
0 - 210
Example:
Amplitude = (Bit Multiplier) X (mV/bit)
Amplitude = (100) X (32.6 mV/bit)
Amplitude = 3.26 Vrms
RETURNED DATA
This routine does not return any data.
EXAMPLE CODE
Code Result/Returned
Data
Program_Amplitude(7,108);
Assuming card #7 is a model
type I5 (240.0 mv/bit), the
oscillator amplitude of card #7
will be set to 25.92 V.
Data Device Corporation
SB-3622X Manual
45