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
62
int WINAPI SelfTest (int Card)
DESCRIPTION
The
SB3624X
card has a self-test feature. By setting a register to 1’s, the card will go into Self-Test
mode, and all angles should read 45 degrees. If any channel does not display 45 degrees (+/- 1
degree), that channel does not pass. If all channels fail, a 0x3F is returned. If only channel 0 fails, a
0x20 is returned. If a 0x99 is returned, the card was not initialized, and therefore the Self-Test was
not performed.
INPUT DATA
Card = an integer between 0 and 7 for the card of interest. The card number is set in Motion
Feedback Board Manager.
RETURNED DATA
This routine returns the Hex equivalent of the channels that fail as an integer. The “0” bit is the most
significant bit, and the 6
th
bit is the least significant bit.
Register format:
Ch 0
Ch 1
Ch 2
Ch 3
Ch 4
Ch 5
0
0
0
0
0
0
0
0
0 x 99 is returned if the card did not initialize.
0 x 20 = Ch 0 fails
0 x 10 = Ch 1 fails
0 x 08 = Ch 2 fails
0 x 04 = Ch 3 fails
0 x 02 = Ch 4 fails
0 x 01 = Ch 5 fails
0 x 3F = all channels on the card failed.
0 x 00 = all the channels passed the initialization of the card.
EXAMPLE CODE
Code
Result/Returned Data
int Test;
Test = SelfTest(0);
Returns the Hex equivalent of which channels (if any)
on card #0 fail self test.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com