F U N C T I O N C A L L S
float WINAPI Program_Multiplier(int Card, int Channel, float
Multiplier, int Direction, int SpeedMode)
DESCRIPTION
This function programs the Binary Rate Multiplier. In order to program the Rotational
Frequency for the Coarse channel, the Speed Ratio has to be first set.
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.
Multiplier = number which is a float.
Direction = an integer that is either a (1) for Up or a (0) for Down.
Speedmode = an integer, (0) for Single Speed mode, and (1) for Two Speed Mode.
RETURNED DATA
This routine returns the actual value of Revs as a float. Since there is some rounding
involved the function returns the actual value that will be programmed.
Range:
Single speed / 12 bit mode = .03 to 2014
Single speed / 16 bit mode = .03 to 125
Two speed / 12 and 16 bit mode = .03 to 254
EXAMPLE CODE
Code Result/Returned
Data
float Multiplier;
Multiplier = Program_Multiplier(0,5,5.5,1,0);
Programs a
positive
Rotational speed
of 5.501322 rps
(closest value to
5.5) for card #0,
channel 5.
Returns 5.501322
as the value for
variable
“Multiplier”.
Data Device Corporation
SB-3622X Manual
48
Summary of Contents for DRC-11525
Page 3: ......