F U N C T I O N C A L L S
void WINAPI Twospeed_Inhibit (int Card, int Channels)
DESCRIPTION
This procedure allows the user to inhibit any combination of channels, simultaneously. The
channels to be inhibited can be selected by OR’ing constants, that identify each channel,
together (Inhibit0, Inhibit1, Inhibit2,… Inhibit5).
Note:
Any channels not included in the inhibit string will be uninhibited.
Ch0 (0x04) = SB3621x_INHIBIT0
Ch1 (0x08) = SB3621x_INHIBIT1
Ch2 (0x10) = SB3621x_INHIBIT2
Ch3 (0x20) = SB3621x_INHIBIT3
Ch4 (0x40) = SB3621x_INHIBIT4
Ch5 (0x80) = SB3621x_INHIBIT5
All channels = SB3621x_INHIBITall
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.
Channels = an integer which represents the channels that will be inhibited.
RETURNED DATA
This routine does not return any data.
EXAMPLE CODE
Code Result/Returned
Data
Twospeed_Inhibit(0,0x0C);
Inhibits Card #0, channels
0 and 1, uninhibits
channels 2 through 5.
Twospeed_Inhibit(0,
SB3621x_INHIBIT0|SB3621x_INHIBIT1);
Inhibits Card #0, channels
0 and 1, uninhibits
channels 2 through 5.
Twospeed_Inhibit(0,0x0);
Uninhibits Card #0,
channels 0 through 5.
Example: Inhibiting channels 0 and 1
Channels = SB3621x_INHIBIT0 | SB3621x_INHIBIT1
Channels = 0x04 | 0x08
Channels = 0x0C
Data Device Corporation
SB-3621X Manual
57
Содержание SB-3621 Series
Страница 3: ......