background image

F U N C T I O N   C A L L S

 

int WINAPI SelfTest (int Card) 

DESCRIPTION 

The 

SB3621X

 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 

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. 

 

Data Device Corporation 

SB-3621X Manual 

45

Содержание SB-3621 Series

Страница 1: ...ss underutilized and idle equipment along with credit for buybacks and trade ins Custom engineering so your equipment works exactly as you specify Critical and expedited services Leasing Rentals Demos...

Страница 2: ...2 For Technical Support 1 800 DDC 5757 ext 7771 Headquarters U S A Tel 631 567 5600 Fax 631 567 7358 United Kingdom Tel 44 0 1635 811140 Fax 44 0 1635 32264 France Tel 33 0 1 41 16 3424 Fax 33 0 1 41...

Страница 3: ......

Страница 4: ...ll Original Issue B 10 2000 All Software Clerical update C 10 2001 All Software Clerical update D 04 2002 All Linux Update E 08 2003 Various Function Calls updated added LabVIEW details Ordering infor...

Страница 5: ...w 11 Motion Feedback Board Manager Application 11 Console Application 11 Synchro dll file Function Calls 11 Windows Software Installation 12 MOTION FEEDBACK BOARD MANAGER 13 Graphical User Interface G...

Страница 6: ...int Channel int Resolution 52 void WINAPI Program_Frequency int Card int Frequency 53 void WINAPI Program_Inhibit int Card int Channel int Control 54 void WINAPI Program_Resolution int Card int Channe...

Страница 7: ...est Results 19 Figure 20 Options Screen Oscillator Resolution Shown 20 Figure 21 Options Screen Select Channel Shown 21 Figure 22 Options Screen Resolution Shown 21 Figure 23 Options Screen Encoder Ou...

Страница 8: ...fications 60 Table 2 Dynamic Characteristics 60 Table 3 Velocity Characteristics 60 Table 4 SB 3621X Pinouts 62 Table 5 Signal Input Configuration 68 Table 6 Oscillator Type 71 Table 7 Input Type 71 D...

Страница 9: ...ls supplied with the Program Product and destroying any portions of the DDC Program Product merged in any form USE OF THE PROGRAM PRODUCT You may use the Program Product only on the Card with which th...

Страница 10: ...ent cannot be modified by purchase orders advertising or other representation by any person If any provision of this agreement shall be held invalid illegal or unenforceable then the validity legality...

Страница 11: ...rope 44 1635 811140 Fax 44 1635 32264 Asia Pacific 81 3 3814 7688 Fax 81 3 3814 7689 Or by faxing 1 631 567 7358 to the attention of Motion Feedback Technologies Applications Customer support 1 800 DD...

Страница 12: ...and chapter references BOLD ITALIC will designate DDC Part Numbers Courier New is used to indicate code examples Indicates user entered text or commands Symbols and Icons The Idea Tip icon will be use...

Страница 13: ...be damaged by Electrical Static Discharge ESD physical shock or improper power surges and that precautions are taken to avoid electrocution Turn off power to the PC and unplug from wall NEVER insert...

Страница 14: ...or either six channels of single speed or three channels of two speed Included with each SB 3621X PCI Card is the DDC Toolbox library with example source code that allows users to easily write their o...

Страница 15: ...se a wrist strap if available or ensure proper static grounding by touching the power supply cover WITH POWER OFF Insert the card at a slight angle so that the connectors first protrude from the rear...

Страница 16: ...IC RESOLVER TO DIGITAL CONVERTER INPUT SCALING SIN COS RH RL RD 19230 MONOLITHIC RESOLVER TO DIGITAL CONVERTER AMPLIFIER OR TRANSFORMER OPTIONAL OSCILLATOR INTERNAL REGISTER ADDRESS DECODER THIN FILM...

Страница 17: ...000 operating system continue with the following installation instructions If you are using Windows NT refer to page 7 for installation instructions If you are using Linux refer to page 7 for installa...

Страница 18: ...ur device 5 Click on the Next button Figure 4 Search This Location For Driver Screen 6 Insert the MFT Software CD into the CD ROM drive 7 a Select the CD ROM drive option to install from CD ROM or b S...

Страница 19: ...igure 5 Install Driver From Location Screen 9 Click on the Next button to install the device driver Figure 6 Driver Installation Complete Screen 10 Click on the FINISH button to confirm the installati...

Страница 20: ...s inception in 1991 individuals university students and companies began distributing Linux with their own choice of packages bound around the original kernel This is where the concept of the distribu...

Страница 21: ...r xzpPf SB3621x_X_Y_Z TGZ 4 Create the shared library links and cache for runtime linking of the synchro library sbin ldconfig 5 As superuser change ownership of all of the files to normal user and th...

Страница 22: ...kernel If a rebuild is required simply run make SB3621 0 in the synchro directory as unprivileged user than copy SB3621 0 to usr lib ddc as root 9 Loading and unloading of the driver is accomplished b...

Страница 23: ...ay of configuration registers built into the card These registers are configured at the factory to contain the optimum values for the operation of the SB 3621X The SB 3621X PCI card and software drive...

Страница 24: ...ION FEEDBACK BOARD MANAGER Application is installed in the CONTROL PANEL during the setup exe installation The MOTION FEEDBACK BOARD MANAGER Application will route the information to the appropriate r...

Страница 25: ...t dramatically reduce software development time by providing a high level interface to the PCI card If you are installing under Windows perform the steps below 16 bit operating systems not supported 1...

Страница 26: ...dy to configure the card Device configuration is performed through the use of the Motion Feedback Board Manager Application 1 Turn on the computer 2 Click on Windows START 3 Click on SETTINGS 4 Click...

Страница 27: ...es window Note The Device will default to none Each card must be assigned to a unique unused device number from 0 to 7 Card numbers cannot be shared 7 To assign the card to a new Device number select...

Страница 28: ...tion Feedback Devices menu the following warning will appear Clicking on Yes will overwrite the previously assigned device number If the Prompt on Replace option was not selected a warning will not be...

Страница 29: ...show a log of all devices installed even if the card is not currently inserted select Show all devices from the Motion Feedback Devices window Figure 14 Motion Feedback Devices window Show all devices...

Страница 30: ...to close the Device Driver Information window and return to the Motion Feedback Devices window Figure 16 Motion Feedback Devices window close 14 Select Close to complete the card configuration and clo...

Страница 31: ...and binary formats Parameters are set and display options are selected using a combination of keyboard and mouse commands according to the chosen format 1 To access the Graphical User GUI Application...

Страница 32: ...installed 3 When the GUI application is initiated a 45 degree angle is simulated into each channel If the digital output is correct the Self Test results will indicate passed as shown below If a chann...

Страница 33: ...display information can be configured to correspond to the hardware configuration The model number purchased determines the oscillator range See the appropriate mV bit shown below Select the model nu...

Страница 34: ...ns select the pair of channels along with the two speed ratio 6 Once the appropriate oscillator is selected the oscillator amplitude and frequency can be programmed by inputting the values into the Os...

Страница 35: ...ion must be of equal or lesser value than the resolution set on the card For example if the resolution set on the card is 14 bits the A quad B resolution must be set to 14 bits or less not 16 bits 8 T...

Страница 36: ...D M A N A G E R 9 Once the options are selected click on OK The main screen will display angular position turns count direction and BIT information Figure 24 Angular Position Screen One Speed Data De...

Страница 37: ...age amplitude or there are no analog input signals connected to the R D converter Note Both SIN and COS signals of the R D converter must fall below 0 5 Vrms or else the BIT may only indicate a fault...

Страница 38: ...ys and the Combined position information on the Analog display Two speed allows resolutions of greater than 16 bit to be achieved For 2 Speed Theory See calculate 2 speed Appendix A for details review...

Страница 39: ...g will be displayed Click on Yes to exit Note Option settings will be saved upon exit from the Application menu These settings will remain active from one session to the next provided that you do not...

Страница 40: ...nhibit data Change bandwidth and resolution Reset counters Change to encoder mode Change oscillator amplitude and frequency The underlying source code for the Console Application is provided as an exa...

Страница 41: ...A response of 0x0 indicates that the card has passed self test with a simulated input angle of 45 degrees and that each converter is working correctly The Self Test Result Codes RESULT CODE DESCRIPTI...

Страница 42: ...r a read Angles operation This example is for a card with six channels installed ANGLE Channels 1 to 6 position information is continuously updated for monitoring Enter 1 to read angles BITE Channels...

Страница 43: ...ection to work properly for both the DOS console and the Windows GUI Encoder A quad B resolution must be of equal or lesser value than the resolution set on the card For example if the resolution set...

Страница 44: ...mV bit Model Number Output Scaling mV bit Examples Bit Multiplier Resultant Amplitude Bit Multiplier Range IX 8 8 mVrms bit 1 0032 Vrms 114 X 0088 114 1 0032 Vrms 0 255 IA 135 0 mVrms bit 26 0550 Vrms...

Страница 45: ...outines for the SB 3621X S R to Digital PCI Interface Card The following list contains all of the pertinent Function Calls required by the user Any Function Calls contained within the Synchro h file t...

Страница 46: ...Y when finished Returns the card type from the given card number for error checking INPUT DATA Card an integer between 0 and 7 for the card of interest The card number is set in the MOTION FEEDBACK BO...

Страница 47: ...he card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER RETURNED DATA This routine will return a 0x99 if the card was not initialized Otherwise the card will return a 1 if Self...

Страница 48: ...has chosen 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 RETURNED DATA This routine will return the type of card insta...

Страница 49: ...displayed in applications and helps to maintain version control INPUT DATA There is no input data for this routine RETURNED DATA This routine will return version number of the synchro dll EXAMPLE COD...

Страница 50: ...essage RETURNED DATA ErrorMsg A int that represents the last error message Values Description 0 No Error 1 Could not open Registry 2 Card Type is invalid 3 Card not Initialized 4 Invalid Direction 5 C...

Страница 51: ...nterest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest RETURNED DATA This routine returns the Bandwidth as an integer 0 High...

Страница 52: ...tain angles The synchro or resolver is moving at a rate greater than the R D converter can accommodate The dynamic capability of the R D converter is determined by the bandwidth selection and the reso...

Страница 53: ...e 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 RETURNED DATA This routine returns the turns count of a ch...

Страница 54: ...The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest RETURNED DATA This routine returns the direction of a channel as an integer 1...

Страница 55: ...rd number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest RETURNED DATA This routine returns the value of the Encoder for a given channel as...

Страница 56: ...d 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 RETURNED DATA This routine returns the status of the inhibit bi...

Страница 57: ...interest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest RETURNED DATA This routine returns an integer that represents the cu...

Страница 58: ...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...

Страница 59: ...t 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 RETURNED DATA This routine will return a 0x99 if the card did not init...

Страница 60: ...D MANAGER Channel an integer between 0 and 5 for the channel of interest RETURNED DATA This routine returns the angle of a given channel as a 32 bit long integer range 0x0000 to 0xFFFF EXAMPLE CODE Co...

Страница 61: ...o card 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 RETURNED DATA This routine does not return any data EXAMPLE CODE...

Страница 62: ...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 IX 8 8 mVrms bit 1 0032 Vrm...

Страница 63: ...T 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 Bandwidth an...

Страница 64: ...A 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 Encoder an integer...

Страница 65: ...R Channel an integer between 0 and 5 for the channel of interest Resolution 10 10 bit resolution 12 12 bit resolution 14 14 bit resolution 16 16 bit resolution Note Encoder A quad B resolution must be...

Страница 66: ...tor 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 Mul...

Страница 67: ...ing is performed appropriate bits are masked and the new value is written to the card INPUT DATA Card an integer between 0 and 7 for the card of interest The card number is set in the MOTION FEEDBACK...

Страница 68: ...n 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 Resolution 10 10 bit resol...

Страница 69: ...een 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 RETURNED DATA This routine does not retu...

Страница 70: ...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 cha...

Страница 71: ...N FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest RETURNED DATA This routine returns the angle of a given channel as a WORD range 0x0000 to 0xFFFF EXAMPLE CODE Co...

Страница 72: ...T 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 RETURNED DATA...

Страница 73: ...and teaser 6 60 Hz Synchro transformers are active requires 15 VDC power supplies 7 400 Hz transformer temperature range 55 to 125 C 8 60 Hz transformer temperature ranges 55 to 125 C 0 to 70 C Table...

Страница 74: ...side consists of 2 rows of pins Front View D connector detail 11 5 Side View Connector Shell detail 41 9 Typ 47 08 Pin 2 Pin 3 Pin 32 Pin 33 Pin 35 Pin 34 Figure 30 Mating Connector P N Acon HPBW 316...

Страница 75: ...6 37 A ch 2 VEL 2 4 B ch 3 38 A ch 3 5 ZI ch 3 39 ZI ch 4 6 B ch 4 40 A ch 4 7 B ch 5 41 A ch 5 8 ZI ch 5 42 ZI ch 6 9 B ch 6 43 A ch 6 10 N C 44 A GND 6 11 S1 6 45 S3 6 12 S2 6 46 S4 6 13 RL 6 47 RH...

Страница 76: ...ver Mode Connect S3 SIN S1 SIN S2 COS S4 COS Single ended mode connections When using 2v single ended configurations S1 and S4 on card connector are no connect Use associated analog ground per output...

Страница 77: ...max Front Back Component Area Front Component Area Applicable to Input Types 0 1 2 7 8 9 Applicable to Input Types 3 4 5 6 1 011 with cover or 115V Transformer Slot Guide Card Optional Slot Guide ship...

Страница 78: ...27 RA12 U12 RA11 U11 U26 RA10 U10 RA9 U9 U25 RA8 U8 RA7 U7 U38 U18 U17 U37 U36 U16 U15 U35 U14 U34 U13 U33 U24 U31 RB4 RB6 RB5 RB1 RB3 RB2 U32 U23 T1 Top View Bottom View T2 U5 U4 U1 U6 U3 U2 Figure 3...

Страница 79: ...r D Type Connector Chan 4 T1 T2 Chan 3 Chan 2 Chan 1 Chan 5 Chan 6 Input Modules Figure 33 SB 3621X Solid State Input Card Photos Note For Reference only T1 and T2 configuration depends upon card Osci...

Страница 80: ...ctor Chan 4 T1 T2 Chan 3 Chan 2 Chan 1 Chan 5 Chan 6 Input Modules Reference Modules Figure 34 SB 36215 Transformer Isolation Input Card Photos Note For Reference only T1 and T2 configuration depends...

Страница 81: ...ect DDC 55688 1 Upper Sockets 11 8V Resolver DDC 49530 Upper Sockets 11 8V Synchro DDC 49530 Lower Sockets 90V Synchro DDC 49590 Lower Sockets Linear Rotary Variable Differential Transformer LVDT RVDT...

Страница 82: ...ard 16 pin DDIP component header required for each channel Figure 36 LVDT Input Signal Configuration aR R R R R aR C1 bR bR C2 2 WIRE LVDT REF IN 2 V FS 2 V 2 2 3 3 S1 1 S3 6 2 5 5 4 4 5 S4 16 S2 7 15...

Страница 83: ...required S2 ground is the user s system ground and not card ground providing that the difference between the system ground and card ground is not greater than the common mode range of the input amplif...

Страница 84: ...L L Synchro 400Hz 11 8V Thin Film 2 11 8V L L Resolver 400Hz 11 8V Thin Film 3 90V L L Synchro 400Hz 90V Thin Film 4 90V L L Synchro 60Hz 90V Thin Film 5 90V L L Synchro 400Hz w Transformer Isolation...

Страница 85: ...etween two signals Measured Angle The analog synchro or resolver signals representing a position that is converted to a digital word or angle Reference Excitation for synchro or resolver device and co...

Страница 86: ...Y Type II Tracking A type of servo control loop Velocity The rate of a change in position for a certain time interval Vrms Root mean square or effective voltage Vp x 2 1 Data Device Corporation SB 36...

Страница 87: ...ix Initialize function 33 Input Type Options 71 Motion Feedback Manager 13 Oscillator Output Options 71 Plug and Play Configuration 2 10 Program_Amplitude function 49 Program_Bandwidth function 50 Pr...

Страница 88: ...uipment Have surplus equipment taking up shelf space We ll give it a new home Learn more Visit us at artisantg com for more info on price quotes drivers technical specifications manuals and documentat...

Отзывы: